Package org.apache.fop.render
Class AbstractFOEventHandlerMaker
java.lang.Object
org.apache.fop.render.AbstractFOEventHandlerMaker
- Direct Known Subclasses:
RTFFOEventHandlerMaker
Base class for factory classes which instantiate FOEventHandlers and provide information
about them.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String[]
boolean
isMimeTypeSupported
(String mimeType) Indicates whether a specific MIME type is supported by this renderer.abstract FOEventHandler
makeFOEventHandler
(FOUserAgent ua, OutputStream out) Instantiates a new FOEventHandler.abstract boolean
-
Constructor Details
-
AbstractFOEventHandlerMaker
public AbstractFOEventHandlerMaker()
-
-
Method Details
-
makeFOEventHandler
public abstract FOEventHandler makeFOEventHandler(FOUserAgent ua, OutputStream out) throws FOPException Instantiates a new FOEventHandler.- Parameters:
ua
- the user agentout
- OutputStream for the FOEventHandler to use- Returns:
- the newly instantiated FOEventHandler
- Throws:
FOPException
- if a problem occurs while creating the event handler
-
needsOutputStream
public abstract boolean needsOutputStream()- Returns:
- Indicates whether this renderer requires an OutputStream to work with.
-
getSupportedMimeTypes
- Returns:
- an array of MIME types the renderer supports.
-
isMimeTypeSupported
Indicates whether a specific MIME type is supported by this renderer.- Parameters:
mimeType
- the MIME type (ex. "application/rtf")- Returns:
- true if the MIME type is supported
-