Package org.exbin.xbup.core.stream
Interface FinishableStream
-
- All Known Implementing Classes:
FixedDataInputStreamWrapper,FixedDataOutputStreamWrapper,TerminatedDataInputStreamWrapper,TerminatedDataOutputStreamWrapper
public interface FinishableStreamInterface for finishable stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longfinish()Reads remaining data and returns size of all data processed by this stream.longgetLength()Returns size of data processed so far.
-
-
-
Method Detail
-
finish
long finish() throws java.io.IOExceptionReads remaining data and returns size of all data processed by this stream.- Returns:
- size of data in bytes
- Throws:
java.io.IOException- if input/output error occurs
-
getLength
long getLength()
Returns size of data processed so far.- Returns:
- size of data in bytes
-
-