Class DeltaDocumentOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.exbin.auxiliary.paged_data.delta.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.
-
-
Constructor Summary
Constructors Constructor Description DeltaDocumentOutputStream(DeltaDocument document)
-
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)
-
-
-
Constructor Detail
-
DeltaDocumentOutputStream
public DeltaDocumentOutputStream(DeltaDocument document)
-
-
Method Detail
-
write
public void write(int value) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] input, int offset, int length) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
seek
public void seek(long position) throws java.io.IOException
- Specified by:
seek
in interfaceorg.exbin.auxiliary.paged_data.SeekableStream
- Throws:
java.io.IOException
-
getStreamSize
public long getStreamSize()
- Specified by:
getStreamSize
in interfaceorg.exbin.auxiliary.paged_data.SeekableStream
-
getProcessedSize
public long getProcessedSize()
- Specified by:
getProcessedSize
in interfaceorg.exbin.auxiliary.paged_data.FinishableStream
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
finish
public long finish() throws java.io.IOException
- Specified by:
finish
in interfaceorg.exbin.auxiliary.paged_data.FinishableStream
- Throws:
java.io.IOException
-
-