com.splunk
Class MultiResultsReaderJson

java.lang.Object
  extended by com.splunk.MultiResultsReader<ResultsReaderJson>
      extended by com.splunk.MultiResultsReaderJson
All Implemented Interfaces:
java.lang.Iterable<SearchResults>

public class MultiResultsReaderJson
extends MultiResultsReader<ResultsReaderJson>

The MultiResultsReaderJson class represents a streaming JSON reader for Splunk search results. This reader supports streams from export searches, which might return one of more previews before returning final results.


Constructor Summary
MultiResultsReaderJson(java.io.InputStream inputStream)
          Class constructor.
 
Method Summary
 
Methods inherited from class com.splunk.MultiResultsReader
close, getNextElement, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiResultsReaderJson

public MultiResultsReaderJson(java.io.InputStream inputStream)
                       throws java.io.IOException
Class constructor. Constructs a streaming JSON reader for the event stream. You should only attempt to parse a JSON stream with this reader. Unpredictable results may occur if you try to parse a stream with a different format.

Parameters:
inputStream - The JSON stream to parse.
Throws:
java.io.IOException