|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agimatec.utility.fileimport.Importer
public class Importer
Description: API facade to import a document (file) in any format.
User: roman.stumm
Date: 20.11.2007
Time: 16:20:21
Copyright: Agimatec GmbH
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
protected ImporterProcessor |
processor
processor is responsible to do the actual import process |
protected ImporterSpec |
spec
is determines the input format and configuration |
| Constructor Summary | |
|---|---|
Importer(ImporterSpec spec)
|
|
| Method Summary | |
|---|---|
int |
getErrorCount()
|
String |
getLastErrorMessage()
last error message that occured during import processing |
Throwable |
getLastException()
last exception thrown and handled during import processing |
int |
getRowCount()
|
protected ImporterSpec |
getSpec()
|
void |
importFrom(InputStream aStream)
API - this method starts the import process. |
void |
importFrom(Reader aReader)
API - this method starts the import process. |
boolean |
isCancelled()
|
void |
log(Object obj)
log an info message to the importLog. |
void |
setErrorWriter(Writer aErrorWriter)
set the writer where errorous data rows should be stored to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected final ImporterProcessor processor
protected final ImporterSpec spec
| Constructor Detail |
|---|
public Importer(ImporterSpec spec)
| Method Detail |
|---|
protected ImporterSpec getSpec()
public final void setErrorWriter(Writer aErrorWriter)
aErrorWriter -
public void importFrom(Reader aReader)
throws ImporterException
aReader - - reader to read the import data from.
Exception
ImporterException
public void importFrom(InputStream aStream)
throws ImporterException
aStream - - stream to read the import data from.
Exception
ImporterExceptionpublic int getRowCount()
public int getErrorCount()
public boolean isCancelled()
public Throwable getLastException()
public String getLastErrorMessage()
public void log(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||