ambit2.core.processors
Class ProcessorFileExport<Content>

Package class diagram package ProcessorFileExport
java.lang.Object
  extended by ambit2.base.processors.DefaultAmbitProcessor<Content,FileOutputState>
      extended by 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

Field Summary
protected  FileOutputState output
           
 
Fields inherited from class ambit2.base.processors.DefaultAmbitProcessor
enabled, logger, propertyChangeSupport
 
Constructor Summary
ProcessorFileExport()
           
ProcessorFileExport(FileOutputState output)
           
 
Method Summary
 FileOutputState getOutput()
           
 FileOutputState process(Content content)
           
 void setOutput(FileOutputState output)
           
protected abstract  void write(com.lowagie.text.Document document, Content content)
           
protected abstract  void writeHTML(com.lowagie.text.Document document, java.io.OutputStream out)
           
protected abstract  void writePDF(com.lowagie.text.Document document, java.io.OutputStream out)
           
protected abstract  void writeRTF(com.lowagie.text.Document document, java.io.OutputStream out)
           
protected abstract  void writeSDF(Content content, java.io.OutputStream out)
           
 
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
 

Field Detail

output

protected FileOutputState output
Constructor Detail

ProcessorFileExport

public ProcessorFileExport()

ProcessorFileExport

public ProcessorFileExport(FileOutputState output)
Method Detail

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