Package writer2latex.api
Interface OutputFile
-
- All Known Implementing Classes:
BibTeXDocument
,BinaryGraphicsDocument
,ContainerWriter
,CssDocument
,DOMDocument
,EPUBWriter
,LaTeXDocument
,NCXWriter
,OPFWriter
,ResourceDocument
,XhtmlDocument
public interface OutputFile
AnOutputFile
represents a single file in aConverterResult
, which is output from aConverter
implementation.
-
-
Method Summary
All Methods Instance Methods Abstract 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
write(java.io.OutputStream os)
Writes theOutputFile
to anOutputStream
.
-
-
-
Method Detail
-
write
void write(java.io.OutputStream os) throws java.io.IOException
Writes theOutputFile
to anOutputStream
.- Parameters:
os
-OutputStream
to which the content should be written- Throws:
java.io.IOException
- if any I/O error occurs
-
getFileName
java.lang.String getFileName()
Returns the file name of theOutputFile
. This includes the file extension and may also include a relative path, always using / as separator.- Returns:
- the file name of this
OutputFile
-
getMIMEType
java.lang.String getMIMEType()
Get the MIME type of theOutputFile
.- Returns:
- string representation of the MIME type
-
isMasterDocument
boolean isMasterDocument()
Test whether this document is part of the main document flow (master documents) or an auxiliary document- Returns:
- true if this document is a master document
-
-