public class RTFImporter extends Importer
Constructor and Description |
---|
RTFImporter()
Creates a new RTF importer.
|
RTFImporter(ImportParameters params)
Creates a new RTF importer with Import-Parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldListener(FieldListener listener)
Adds a field listener that is notified when a field was encountered by
this importer.
|
void |
addImportListener(ImportListener listener)
Adds an import listener that is notified on some import events.
|
protected Document |
doImport(java.io.InputStream is,
java.lang.String baseDir)
Imports a RTF document to XSL-FO.
|
RTF2FOConfig |
getConfiguration()
Gets the configuration of this importer.
|
protected java.io.File |
getImagePath() |
java.lang.String |
getType()
Returns always "rtf".
|
FieldListener[] |
listFieldListeners()
Lists all field listeners.
|
void |
removeAllFieldListeners()
Removes all field listeners.
|
void |
removeAllImportListeners()
Removes all import listeners.
|
void |
removeFieldListener(FieldListener listener)
Removes a field listener.
|
void |
removeImportListener(ImportListener listener)
Removes an import listener.
|
void |
setConfiguration(RTF2FOConfig configuration)
Overrides the global configuration.
|
boolean |
supportsFontMapping()
Returns always true.
|
void |
unregisterAllFieldProcessors()
Deprecated.
Use removeAllFieldListeners() instead.
|
getParameters, getWrittenImages, importDocument, importDocument, setParameters, writeImageFile
public RTFImporter()
public RTFImporter(ImportParameters params)
params
- Import Parameterspublic final boolean supportsFontMapping()
supportsFontMapping
in class Importer
true
.public final java.lang.String getType()
public RTF2FOConfig getConfiguration()
JFOConfig.instance()
public final void setConfiguration(RTF2FOConfig configuration)
configuration
- Configuration.JFOConfig.getRTF2FOConfig()
,
RTF2FOConfig.copy()
protected Document doImport(java.io.InputStream is, java.lang.String baseDir) throws java.io.IOException
public void addFieldListener(FieldListener listener)
listener
- FieldListener.public void removeFieldListener(FieldListener listener)
listener
- FieldListener.public void removeAllFieldListeners()
public FieldListener[] listFieldListeners()
public void addImportListener(ImportListener listener)
listener
- Listener.public void removeImportListener(ImportListener listener)
listener
- RTFImportListenerpublic void removeAllImportListeners()
public void unregisterAllFieldProcessors()
protected java.io.File getImagePath()
getImagePath
in class Importer
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.