public abstract class DocumentImporter extends Object
Modifier and Type | Field and Description |
---|---|
protected InputStream |
input
The input stream given in the constructor.
|
protected org.apache.uima.jcas.JCas |
target
The target CAS instance.
|
Constructor and Description |
---|
DocumentImporter(InputStream input,
org.apache.uima.jcas.JCas target)
Creates the instance of DocumentImporter.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
doImport()
Imports the document provided by the input stream and writes the
contents to the given CAS instance.
|
protected InputStream input
protected org.apache.uima.jcas.JCas target
public DocumentImporter(InputStream input, org.apache.uima.jcas.JCas target)
input
- is the input stream from which the document should be read.target
- is the target UIMA Common Analysis Structure to which
the document contents are written and annotated.public abstract void doImport() throws IOException
IOException
- if an error occurs while reading from the input
stream.Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie