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 TypeMethodDescriptionvoidconvert(Document document, OutputStream outputStream) Converts a given document and output results in provided output stream.protected abstract voidrun(Document document, OutputStream outputStream) Methods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupportedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ConverterConverts a given document and output results in provided output stream.- Specified by:
convertin 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:
IOExceptionConverterExceptionDocumentException
-
run
protected abstract void run(Document document, OutputStream outputStream) throws IOException, ConverterException, DocumentException
-