Package org.ghost4j.converter
Class AbstractConverter
java.lang.Object
org.ghost4j.AbstractComponent
org.ghost4j.converter.AbstractConverter
Abstract converter implementation. Contains methods that are common to the
different converter types
-
Field Summary
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(Document document, OutputStream outputStream) Converts a given document and output results in provided output stream.protected abstract void
run
(Document document, OutputStream outputStream) Methods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupported
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ghost4j.Component
copySettings, extractSettings
-
Constructor Details
-
AbstractConverter
public AbstractConverter()
-
-
Method Details
-
convert
public void convert(Document document, OutputStream outputStream) throws IOException, ConverterException, DocumentException Description copied from interface:Converter
Converts a given document and output results in provided output stream.- Specified by:
convert
in interfaceConverter
- Parameters:
document
- Document to convert. Document type may or may no be supported (support left to the convert final implementation).outputStream
- Output stream where converted document is written.- Throws:
IOException
ConverterException
DocumentException
-
run
protected abstract void run(Document document, OutputStream outputStream) throws IOException, ConverterException, DocumentException
-