public abstract class Importer
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Importer() |
protected |
Importer(ImportParameters params) |
Modifier and Type | Method and Description |
---|---|
protected abstract Document |
doImport(java.io.InputStream source,
java.lang.String baseDir) |
protected java.io.File |
getImagePath() |
ImportParameters |
getParameters()
Gets the parameters for this importer.
|
abstract java.lang.String |
getType()
Gets the type of the external document.
|
java.io.File[] |
getWrittenImages()
Gets an array of all images that were read during import.
|
Document |
importDocument(java.io.InputStream source)
Import a document.
|
Document |
importDocument(java.lang.String sourceFile)
Import a document.
|
void |
setParameters(ImportParameters parameters)
Sets the parameters for this importer.
|
abstract boolean |
supportsFontMapping()
Determinates if this importer supports font-mapping.
|
java.lang.String |
writeImageFile(java.io.InputStream picture,
boolean skipIfExists,
ImageMetaData id)
Stores a picture to disc, used by importer.
|
protected Importer()
protected Importer(ImportParameters params)
public final Document importDocument(java.lang.String sourceFile) throws java.io.IOException
sourceFile
- Source of document.java.io.IOException
public final Document importDocument(java.io.InputStream source) throws java.io.IOException
source
- Source of document.java.io.IOException
public abstract java.lang.String getType()
public abstract boolean supportsFontMapping()
public ImportParameters getParameters()
public void setParameters(ImportParameters parameters)
parameters
- Import parameters.public java.io.File[] getWrittenImages()
protected abstract Document doImport(java.io.InputStream source, java.lang.String baseDir) throws java.io.IOException
java.io.IOException
public java.lang.String writeImageFile(java.io.InputStream picture, boolean skipIfExists, ImageMetaData id)
picture
- Picture.skipIfExists
- true forces to skip picture if file already exists.id
- Image descriptor.protected java.io.File getImagePath()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.