Class DeltaDocumentOutputStream

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

    @ParametersAreNonnullByDefault
    public class DeltaDocumentOutputStream
    extends java.io.OutputStream
    implements org.exbin.auxiliary.paged_data.SeekableStream, org.exbin.auxiliary.paged_data.FinishableStream
    Delta document output stream.
    • Method Summary

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

        flush, nullOutputStream, write
      • Methods inherited from class java.lang.Object

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

      • DeltaDocumentOutputStream

        public DeltaDocumentOutputStream​(DeltaDocument document)
    • Method Detail

      • write

        public void write​(int value)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] input,
                          int offset,
                          int length)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        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
      • getStreamSize

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

        public long getProcessedSize()
        Specified by:
        getProcessedSize in interface org.exbin.auxiliary.paged_data.FinishableStream
      • 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.OutputStream
        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