Class DeltaDocumentInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.exbin.auxiliary.paged_data.FinishableStream, org.exbin.auxiliary.paged_data.SeekableStream

    @ParametersAreNonnullByDefault
    public class DeltaDocumentInputStream
    extends java.io.InputStream
    implements org.exbin.auxiliary.paged_data.SeekableStream, org.exbin.auxiliary.paged_data.FinishableStream
    Delta document input stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      void close()  
      long finish()  
      long getProcessedSize()  
      long getStreamSize()  
      int read()  
      int read​(byte[] output, int offset, int length)  
      void seek​(long position)  
      • Methods inherited from class java.io.InputStream

        mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • DeltaDocumentInputStream

        public DeltaDocumentInputStream​(DeltaDocument document)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] output,
                        int offset,
                        int length)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • seek

        public void seek​(long position)
                  throws java.io.IOException
        Specified by:
        seek in interface org.exbin.auxiliary.paged_data.SeekableStream
        Throws:
        java.io.IOException
      • finish

        public long finish()
                    throws java.io.IOException
        Specified by:
        finish in interface org.exbin.auxiliary.paged_data.FinishableStream
        Throws:
        java.io.IOException
      • getProcessedSize

        public long getProcessedSize()
        Specified by:
        getProcessedSize in interface org.exbin.auxiliary.paged_data.FinishableStream
      • getStreamSize

        public long getStreamSize()
        Specified by:
        getStreamSize in interface org.exbin.auxiliary.paged_data.SeekableStream