Package org.ghost4j.converter
Class AbstractConverter
- java.lang.Object
-
- org.ghost4j.AbstractComponent
-
- org.ghost4j.converter.AbstractConverter
-
public abstract class AbstractConverter extends AbstractComponent implements Converter
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 Constructor Description AbstractConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
convert(Document document, java.io.OutputStream outputStream)
Converts a given document and output results in provided output stream.protected abstract void
run(Document document, java.io.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
-
-
-
-
Method Detail
-
convert
public void convert(Document document, java.io.OutputStream outputStream) throws java.io.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:
java.io.IOException
ConverterException
DocumentException
-
run
protected abstract void run(Document document, java.io.OutputStream outputStream) throws java.io.IOException, ConverterException, DocumentException
- Throws:
java.io.IOException
ConverterException
DocumentException
-
-