PDF3DContent

Inheritance: java.lang.Object

public class PDF3DContent

Class PDF3DContent.

Constructors

ConstructorDescription
PDF3DContent()Initializes a new instance of the PDF3DContent class.
PDF3DContent(String filename)Initializes a new instance of the PDF3DContent class.

Methods

MethodDescription
getExtension()Gets the extension .
load(String filename)Loads 3D content with the specified filename.
loadAsPRC(String filename)Loads 3D content with the specified filename as PRC format.
loadAsU3D(String filename)Loads 3D content with the specified filename as U3D format.
loadAsPRC(InputStream stream)Loads 3D content from stream as PRC format.
loadAsU3D(InputStream stream)Loads 3D content from stream as U3D format.
loadAsPRC(byte[] stream)Loads 3D content from byte array as PRC format.
loadAsU3D(byte[] stream)Loads 3D content from byte array as U3D format.
saveToFile(String filename)Saves 3D content to file.
getAsStream()Gets 3D content as stream.
getAsByteArray()Gets 3D content as byte array.

PDF3DContent()

public PDF3DContent()

Initializes a new instance of the PDF3DContent class.

PDF3DContent(String filename)

public PDF3DContent(String filename)

Initializes a new instance of the PDF3DContent class.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe filename.

getExtension()

public String getExtension()

Gets the extension .

Returns: java.lang.String - String object: The extension.

load(String filename)

public void load(String filename)

Loads 3D content with the specified filename.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe filename.

loadAsPRC(String filename)

public void loadAsPRC(String filename)

Loads 3D content with the specified filename as PRC format.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe filename.

loadAsU3D(String filename)

public void loadAsU3D(String filename)

Loads 3D content with the specified filename as U3D format.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe filename.

loadAsPRC(InputStream stream)

public void loadAsPRC(InputStream stream)

Loads 3D content from stream as PRC format.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe 3D content stream.

loadAsU3D(InputStream stream)

public void loadAsU3D(InputStream stream)

Loads 3D content from stream as U3D format.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe 3D content stream.

loadAsPRC(byte[] stream)

public void loadAsPRC(byte[] stream)

Loads 3D content from byte array as PRC format.

Parameters:

ParameterTypeDescription
streambyte[]The stream.

loadAsU3D(byte[] stream)

public void loadAsU3D(byte[] stream)

Loads 3D content from byte array as U3D format.

Parameters:

ParameterTypeDescription
streambyte[]The stream.

saveToFile(String filename)

public void saveToFile(String filename)

Saves 3D content to file.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringThe file name.

getAsStream()

public InputStream getAsStream()

Gets 3D content as stream.

Returns: java.io.InputStream - Stream.

getAsByteArray()

public byte[] getAsByteArray()

Gets 3D content as byte array.

Returns: byte[] - System.Byte[].