Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FeedOperation read()
      Reads the next operation from the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface FeedReader
        Returns:
        operation, possibly invalid if none was found.
        Throws:
        java.lang.Exception