OutputFilepublic class BinaryGraphicsDocument extends java.lang.Object implements OutputFile
| Constructor | Description |
|---|---|
BinaryGraphicsDocument(java.lang.String sFileName,
java.lang.String sMimeType) |
Constructs a new graphics document.
|
BinaryGraphicsDocument(BinaryGraphicsDocument bgd) |
Construct a new graphics document which is a recycled version of the supplied one.
|
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getData() |
Get the data of the image
|
java.lang.String |
getFileName() |
Get the document name or URL
|
java.lang.String |
getMIMEType() |
Get the MIME type of the document.
|
boolean |
isAcceptedFormat() |
Is this image in an acceptable format for the converter?
|
boolean |
isLinked() |
Does this
BinaryGraphicsDocument represent a linked image? |
boolean |
isMasterDocument() |
Is this document a master document?
|
boolean |
isRecycled() |
Is this graphics document recycled?
|
void |
setData(byte[] data,
boolean bIsAcceptedFormat) |
Set image contents to a byte array
|
void |
setData(byte[] data,
int nOff,
int nLen,
boolean bIsAcceptedFormat) |
Set image contents to part of a byte array
|
void |
write(java.io.OutputStream os) |
Writes out the content to the specified
OutputStream. |
public BinaryGraphicsDocument(java.lang.String sFileName,
java.lang.String sMimeType)
read methods, the document is considered a link to
the image given by the file name.sFileName - The name or URL of the GraphicsDocument.sMimeType - the MIME type of the documentpublic BinaryGraphicsDocument(BinaryGraphicsDocument bgd)
bgd - the source documentpublic boolean isRecycled()
public void setData(byte[] data,
boolean bIsAcceptedFormat)
data - the image databIsAcceptedFormat - flag to indicate that the format of the image is acceptable for the converterpublic void setData(byte[] data,
int nOff,
int nLen,
boolean bIsAcceptedFormat)
data - the image datanOff - the offset into the byte arraynLen - the number of bytes to usebIsAcceptedFormat - flag to indicate that the format of the image is acceptable for the converterpublic boolean isLinked()
BinaryGraphicsDocument represent a linked image?public boolean isAcceptedFormat()
public byte[] getData()
public void write(java.io.OutputStream os)
throws java.io.IOException
OutputStream.
Linked images will not write any data.write in interface OutputFileos - OutputStream to write out the content.java.io.IOException - If any I/O error occurs.public java.lang.String getFileName()
getFileName in interface OutputFilepublic java.lang.String getMIMEType()
getMIMEType in interface OutputFilepublic boolean isMasterDocument()
isMasterDocument in interface OutputFile