Package writer2latex.xhtml
Class ResourceDocument
- java.lang.Object
-
- writer2latex.xhtml.ResourceDocument
-
- All Implemented Interfaces:
OutputFile
public class ResourceDocument extends java.lang.Object implements OutputFile
An implementation ofOutputFile
for resource documents. (A resource document is an arbitrary binary file to include in the converter result)
-
-
Constructor Summary
Constructors Constructor Description ResourceDocument(java.lang.String sFileName, java.lang.String sMediaType)
Constructor (creates an empty document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
Returns the file name of theOutputFile
.java.lang.String
getMIMEType()
Get the MIME type of theOutputFile
.boolean
isMasterDocument()
Test whether this document is part of the main document flow (master documents) or an auxiliary documentvoid
read(java.io.InputStream is)
void
write(java.io.OutputStream os)
Writes theOutputFile
to anOutputStream
.
-
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
Description copied from interface:OutputFile
Returns the file name of theOutputFile
. This includes the file extension and may also include a relative path, always using / as separator.- Specified by:
getFileName
in interfaceOutputFile
- Returns:
- the file name of this
OutputFile
-
getMIMEType
public java.lang.String getMIMEType()
Description copied from interface:OutputFile
Get the MIME type of theOutputFile
.- Specified by:
getMIMEType
in interfaceOutputFile
- Returns:
- string representation of the MIME type
-
isMasterDocument
public boolean isMasterDocument()
Description copied from interface:OutputFile
Test whether this document is part of the main document flow (master documents) or an auxiliary document- Specified by:
isMasterDocument
in interfaceOutputFile
- Returns:
- true if this document is a master document
-
write
public void write(java.io.OutputStream os) throws java.io.IOException
Description copied from interface:OutputFile
Writes theOutputFile
to anOutputStream
.- Specified by:
write
in interfaceOutputFile
- Parameters:
os
-OutputStream
to which the content should be written- Throws:
java.io.IOException
- if any I/O error occurs
-
read
public void read(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
-