public class ResultsReaderCsv extends ResultsReader
ResultsReaderCsv
class represents a streaming CSV reader for
Splunk search results. This class requires the opencsv-2.3.jar file in your
build path.inputStream
Constructor and Description |
---|
ResultsReaderCsv(java.io.InputStream inputStream)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader and returns resources.
|
java.util.Collection<java.lang.String> |
getFields()
Returns a collection of field names from the results.
|
boolean |
isPreview()
This method is not supported.
|
getNextEvent, iterator
public ResultsReaderCsv(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- The CSV stream to parse.java.io.IOException
public void close() throws java.io.IOException
close
in class ResultsReader
java.io.IOException
- On IO exception.public boolean isPreview()
public java.util.Collection<java.lang.String> getFields()
Note that any given result will contain a subset of these fields.