PDF3DContent
Inheritance: java.lang.Object
public class PDF3DContent
Class PDF3DContent.
Constructors
Constructor | Description |
---|---|
PDF3DContent() | Initializes a new instance of the PDF3DContent class. |
PDF3DContent(String filename) | Initializes a new instance of the PDF3DContent class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | The filename. |
loadAsPRC(String filename)
public void loadAsPRC(String filename)
Loads 3D content with the specified filename as PRC format.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | The filename. |
loadAsU3D(String filename)
public void loadAsU3D(String filename)
Loads 3D content with the specified filename as U3D format.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | The filename. |
loadAsPRC(InputStream stream)
public void loadAsPRC(InputStream stream)
Loads 3D content from stream as PRC format.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | The 3D content stream. |
loadAsU3D(InputStream stream)
public void loadAsU3D(InputStream stream)
Loads 3D content from stream as U3D format.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | The 3D content stream. |
loadAsPRC(byte[] stream)
public void loadAsPRC(byte[] stream)
Loads 3D content from byte array as PRC format.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | byte[] | The stream. |
loadAsU3D(byte[] stream)
public void loadAsU3D(byte[] stream)
Loads 3D content from byte array as U3D format.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | byte[] | The stream. |
saveToFile(String filename)
public void saveToFile(String filename)
Saves 3D content to file.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | The 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[].