Class ProgressStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class ProgressStream
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.fasterxml.jackson.databind.MappingIterator<ProgressMessage> iterator  
      private java.io.InputStream stream  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgressStream​(java.io.InputStream stream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean hasNextMessage​(java.lang.String method, java.net.URI uri)  
      ProgressMessage nextMessage​(java.lang.String method, java.net.URI uri)  
      void tail​(ProgressHandler handler, java.lang.String method, java.net.URI uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stream

        private final java.io.InputStream stream
      • iterator

        private final com.fasterxml.jackson.databind.MappingIterator<ProgressMessage> iterator
    • Constructor Detail

      • ProgressStream

        ProgressStream​(java.io.InputStream stream)
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException