Class AbstractBinaryWritingIFDocumentHandler
java.lang.Object
org.apache.fop.render.intermediate.AbstractIFDocumentHandler
org.apache.fop.render.intermediate.AbstractBinaryWritingIFDocumentHandler
- All Implemented Interfaces:
IFDocumentHandler
- Direct Known Subclasses:
AbstractBitmapDocumentHandler,AFPDocumentHandler,PCLDocumentHandler,PDFDocumentHandler,PSDocumentHandler
Abstract base class for binary-writing
IFDocumentHandler implementations.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FontInfoFont configurationprotected OutputStreamThe output stream to write the document to -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates the end of a document.Returns the font set to work with.voidsetDefaultFontInfo(FontInfo fontInfo) Sets the default font set (with no custom configuration).voidsetFontInfo(FontInfo fontInfo) Sets the font set to work with.voidSets the JAXP Result object to receive the generated content.voidIndicates the start of a document.Methods inherited from class org.apache.fop.render.intermediate.AbstractIFDocumentHandler
endDocumentHeader, endDocumentTrailer, endPageHeader, endPageTrailer, getContext, getDocumentNavigationHandler, getStructureTreeEventHandler, getUserAgent, setDocumentLocale, startDocumentHeader, startDocumentTrailer, startPageHeader, startPageTrailerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.fop.render.intermediate.IFDocumentHandler
endPage, endPageContent, endPageSequence, getConfigurator, getMimeType, handleExtensionObject, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrder
-
Field Details
-
outputStream
The output stream to write the document to -
fontInfo
Font configuration
-
-
Constructor Details
-
AbstractBinaryWritingIFDocumentHandler
-
-
Method Details
-
setResult
Sets the JAXP Result object to receive the generated content.- Parameters:
result- the JAXP Result object to receive the generated content- Throws:
IFException- if an error occurs setting up the output
-
getFontInfo
Returns the font set to work with.- Returns:
- the font info object
-
setFontInfo
Sets the font set to work with.- Parameters:
fontInfo- the font info object
-
setDefaultFontInfo
Sets the default font set (with no custom configuration).- Parameters:
fontInfo- the font info object to populate
-
startDocument
Indicates the start of a document. This method may only be called once before any other event method.- Specified by:
startDocumentin interfaceIFDocumentHandler- Overrides:
startDocumentin classAbstractIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
endDocument
Indicates the end of a document. This method may only be called once after the whole document has been handled. Implementations can release resources (close streams). It is an error to call any event method after this method.- Throws:
IFException- if an error occurs while handling this event
-