public class SimpleCsvListener extends BaseCsvListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeFeatures
Include features on the annotations or not.
|
includeHeader, writer, writerBuilder
annotationTypeFilter, docInfo, exitOnError, inputType, lastException, logErrors, mOutputDir, numReceived, numSent, previousReferenceId, referenceID
Constructor and Description |
---|
SimpleCsvListener(File file)
Constructor with File parameter.
|
SimpleCsvListener(OutputStream stream)
Constructor with an OutputStream parameter.
|
SimpleCsvListener(Writer writer)
Constructor with a Writer parameter.
|
Modifier and Type | Method and Description |
---|---|
protected String[] |
getHeaders()
Returns the string list of the headers for a row.
|
protected List<String[]> |
getRows(org.apache.uima.cas.CAS aCas)
Given a cas, return one or more rows of data.
|
boolean |
isIncludeFeatures()
Get the includeFeatures flag value, if true then include feature values in the output.
|
<T extends SimpleCsvListener> |
setIncludeFeatures(boolean includeFeatures)
Set the includeFeatures flag value, if true then include feature values in the output.
|
collectionProcessComplete, entityProcessComplete, getEscapechar, getLineEnd, getQuotechar, getSeparator, initializationComplete, isIncludeHeader, setEscapechar, setIncludeHeader, setLineEnd, setQuotechar, setSeparator, writeHeaders
checkForError, entityProcessError, getAnnotationTypeFilter, getInputType, getInputTypesList, getNumReceived, getNumSent, getOutputDir, getReferenceLocation, hasAnnotationsToProcess, hasFilteredAnnotation, isExitOnError, isLogErrors, onBeforeMessageSend, setAnnotationTypeFilter, setExitOnError, setInputType, setLogErrors, setOutputDir
protected boolean includeFeatures
public SimpleCsvListener(File file) throws FileNotFoundException
file
- The printwriter to write to.FileNotFoundException
- if the file is not found or can't be written to.public SimpleCsvListener(OutputStream stream)
stream
- The stream to write to.public SimpleCsvListener(Writer writer)
writer
- The writerBuilder to use for outputpublic boolean isIncludeFeatures()
public <T extends SimpleCsvListener> T setIncludeFeatures(boolean includeFeatures)
includeFeatures
- if true include annotation features in outputprotected List<String[]> getRows(org.apache.uima.cas.CAS aCas)
BaseCsvListener
getRows
in class BaseCsvListener
aCas
- the document cas to get results fromprotected String[] getHeaders()
BaseCsvListener
getHeaders
in class BaseCsvListener
Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.