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(InputStream inputStream)
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader and returns resources.
|
Collection<String> |
getFields()
Returns a collection of field names from the results.
|
boolean |
isPreview()
This method is not supported.
|
getNextEvent, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ResultsReaderCsv(InputStream inputStream) throws IOException
inputStream
- The CSV stream to parse.IOException
- The IOException instancepublic void close() throws IOException
close
in class ResultsReader
IOException
- On IO exception.public boolean isPreview()
public Collection<String> getFields()
Note that any given result will contain a subset of these fields.
Copyright © 2022 Splunk, Inc.. All rights reserved.