writer2latex.xmerge
public class BinaryGraphicsDocument extends Object implements Document
Class representing a binary graphics document. This class is used for representing graphics documents that are not interpreted in any way, but simply copied verbatim from the source format to the target format.
GraphicsDocument
is used to create new graphics documents.
Constructor Summary | |
---|---|
BinaryGraphicsDocument(String name, String sFileExtension, String sMimeType) Constructs a new graphics document. This new document does not contain any information. |
Method Summary | |
---|---|
String | getDocumentMIMEType()
Method to return the MIME type of the document.
|
String | getFileExtension()
Returns the file extension for this type of
Document .
|
String | getFileName() Returns the |
String | getName() Returns the |
void | read(InputStream docData) This method reads |
void | read(byte[] data) |
void | read(byte[] data, int nOff, int nLen) |
void | write(OutputStream os) Writes out the This method may not be thread-safe. |
Constructs a new graphics document.
This new document does not contain any information. Document data must
either be added using appropriate methods, or an existing file can be
read
from an InputStream
.
Parameters: name The name of the GraphicsDocument
.
Returns: String The document's MIME type.
Document
.
Returns: The file extension of Document
.
Returns the Document
name with file extension.
Returns: The Document
name with file extension.
Returns the Document
name with no file extension.
Returns: The Document
name with no file extension.
This method reads byte
data from the InputStream.
Parameters: is InputStream containing a binary data file.
Throws: IOException In case of any I/O errors.
Writes out the Document
content to the specified
OutputStream
.
This method may not be thread-safe. Implementations may or may not synchronize this method. User code (i.e. caller) must make sure that calls to this method are thread-safe.
Parameters: os OutputStream
to write out the
Document
content.
Throws: IOException If any I/O error occurs.