|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwriter2latex.util.ConverterBase
public abstract class ConverterBase
Abstract base implementation of writer2latex.api.Converter
| Constructor Summary | |
|---|---|
ConverterBase()
|
|
| Method Summary | |
|---|---|
void |
addDocument(OutputFile doc)
|
ConverterResult |
convert(java.io.InputStream is,
java.lang.String sTargetFileName)
Convert a document |
abstract void |
convertInner()
|
EmbeddedObject |
getEmbeddedObject(java.lang.String sHref)
|
ImageLoader |
getImageLoader()
|
MetaData |
getMetaData()
|
void |
readTemplate(java.io.InputStream is)
Read a template to use as a base for the converted document The format of the template depends on the Converter
implementation. |
void |
setConfig(Config config)
Define the configuration to use when converting. |
void |
setGraphicConverter(GraphicConverter graphicConverter)
Define a GraphicConverter implementation to use for
conversion of graphic files. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConverterBase()
| Method Detail |
|---|
public void setConfig(Config config)
ConverterDefine the configuration to use when converting. If no configuration is specified, the converter will use a default configuration.
Note: This method will change in version 0.6
setConfig in interface Converterconfig - the configuration to usepublic void setGraphicConverter(GraphicConverter graphicConverter)
ConverterDefine a GraphicConverter implementation to use for
conversion of graphic files. If no converter is specified, graphic
files will not be converted into other formats.
setGraphicConverter in interface ConvertergraphicConverter - the GraphicConverter to use
public void readTemplate(java.io.InputStream is)
throws java.io.IOException
ConverterRead a template to use as a base for the converted document
The format of the template depends on the Converter
implementation.
readTemplate in interface Converteris - an InputStream from which to read the template
java.io.IOException - if some exception occurs while reading the template
public ConverterResult convert(java.io.InputStream is,
java.lang.String sTargetFileName)
throws java.io.IOException
ConverterConvert a document
convert in interface Converteris - an InputStream from which to read the source document.sTargetFileName - the file name to use for the converted document
(if the converted document is a compound document consisting consisting
of several files, this name will be used for the master document)
ConverterResult containing the converted document
java.io.IOException - if some exception occurs while reading the document
public abstract void convertInner()
throws java.io.IOException
java.io.IOExceptionpublic MetaData getMetaData()
public ImageLoader getImageLoader()
public void addDocument(OutputFile doc)
public EmbeddedObject getEmbeddedObject(java.lang.String sHref)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||