Package writer2latex.xhtml
Class ResourceDocument
java.lang.Object
writer2latex.xhtml.ResourceDocument
- All Implemented Interfaces:
OutputFile
An implementation of
OutputFile for resource documents.
(A resource document is an arbitrary binary file to include in the converter result)-
Constructor Summary
ConstructorsConstructorDescriptionResourceDocument(String sFileName, String sMediaType) Constructor (creates an empty document) -
Method Summary
Modifier and TypeMethodDescriptionReturns the file name of theOutputFile.Get the MIME type of theOutputFile.booleanTest whether this document is part of the main document flow (master documents) or an auxiliary documentvoidread(InputStream is) voidwrite(OutputStream os) Writes theOutputFileto anOutputStream.
-
Constructor Details
-
ResourceDocument
Constructor (creates an empty document)- Parameters:
sFileName-Documentname.sMediaType- the media type
-
-
Method Details
-
getFileName
Description copied from interface:OutputFileReturns the file name of theOutputFile. This includes the file extension and may also include a relative path, always using / as separator.- Specified by:
getFileNamein interfaceOutputFile- Returns:
- the file name of this
OutputFile
-
getMIMEType
Description copied from interface:OutputFileGet the MIME type of theOutputFile.- Specified by:
getMIMETypein interfaceOutputFile- Returns:
- string representation of the MIME type
-
isMasterDocument
public boolean isMasterDocument()Description copied from interface:OutputFileTest whether this document is part of the main document flow (master documents) or an auxiliary document- Specified by:
isMasterDocumentin interfaceOutputFile- Returns:
- true if this document is a master document
-
write
Description copied from interface:OutputFileWrites theOutputFileto anOutputStream.- Specified by:
writein interfaceOutputFile- Parameters:
os-OutputStreamto which the content should be written- Throws:
IOException- if any I/O error occurs
-
read
- Throws:
IOException
-