Package com.yahoo.document.json
Class JsonFeedReader
- java.lang.Object
-
- com.yahoo.document.json.JsonFeedReader
-
- All Implemented Interfaces:
FeedReader
public class JsonFeedReader extends java.lang.Object implements FeedReader
Facade between JsonReader and the FeedReader API.The feed reader will take ownership of the input stream and close it when the last parseable document has been read.
- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description JsonFeedReader(java.io.InputStream stream, DocumentTypeManager docMan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeedOperation
read()
Reads the next operation from the stream.
-
-
-
Constructor Detail
-
JsonFeedReader
public JsonFeedReader(java.io.InputStream stream, DocumentTypeManager docMan)
-
-
Method Detail
-
read
public FeedOperation read() throws java.lang.Exception
Description copied from interface:FeedReader
Reads the next operation from the stream.- Specified by:
read
in interfaceFeedReader
- Returns:
- operation, possibly invalid if none was found.
- Throws:
java.lang.Exception
-
-