ambit2.core.processors
Class ProcessorFileExport<Content>
java.lang.Object
ambit2.base.processors.DefaultAmbitProcessor<Content,FileOutputState>
ambit2.core.processors.ProcessorFileExport<Content>
- Type Parameters:
Content
-
- All Implemented Interfaces:
- ambit2.base.interfaces.IProcessor<Content,FileOutputState>, ambit2.base.processors.Reporter<Content,FileOutputState>, java.io.Serializable
public abstract class ProcessorFileExport<Content>
- extends ambit2.base.processors.DefaultAmbitProcessor<Content,FileOutputState>
- implements ambit2.base.processors.Reporter<Content,FileOutputState>
TODO merge with representation convertor
make use of http://jmimemagic.sourceforge.net/maven-reports.html for mime recognition
- See Also:
- Serialized Form
Fields inherited from class ambit2.base.processors.DefaultAmbitProcessor |
enabled, logger, propertyChangeSupport |
Methods inherited from class ambit2.base.processors.DefaultAmbitProcessor |
addPropertyChangeListener, addPropertyChangeListener, getID, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ambit2.base.processors.Reporter |
close |
Methods inherited from interface ambit2.base.interfaces.IProcessor |
getID, isEnabled, setEnabled |
output
protected FileOutputState output
ProcessorFileExport
public ProcessorFileExport()
ProcessorFileExport
public ProcessorFileExport(FileOutputState output)
getOutput
public FileOutputState getOutput()
- Specified by:
getOutput
in interface ambit2.base.processors.Reporter<Content,FileOutputState>
setOutput
public void setOutput(FileOutputState output)
- Specified by:
setOutput
in interface ambit2.base.processors.Reporter<Content,FileOutputState>
process
public FileOutputState process(Content content)
throws ambit2.base.exceptions.AmbitException
- Specified by:
process
in interface ambit2.base.interfaces.IProcessor<Content,FileOutputState>
- Throws:
ambit2.base.exceptions.AmbitException
write
protected abstract void write(com.lowagie.text.Document document,
Content content)
throws com.lowagie.text.DocumentException
- Throws:
com.lowagie.text.DocumentException
writePDF
protected abstract void writePDF(com.lowagie.text.Document document,
java.io.OutputStream out)
throws com.lowagie.text.DocumentException
- Throws:
com.lowagie.text.DocumentException
writeSDF
protected abstract void writeSDF(Content content,
java.io.OutputStream out)
throws ambit2.base.exceptions.AmbitException
- Throws:
ambit2.base.exceptions.AmbitException
writeRTF
protected abstract void writeRTF(com.lowagie.text.Document document,
java.io.OutputStream out)
throws ambit2.base.exceptions.AmbitException
- Throws:
ambit2.base.exceptions.AmbitException
writeHTML
protected abstract void writeHTML(com.lowagie.text.Document document,
java.io.OutputStream out)
throws ambit2.base.exceptions.AmbitException
- Throws:
ambit2.base.exceptions.AmbitException