Package org.exbin.auxiliary.paged_data
Interface FinishableStream
-
- All Known Implementing Classes:
ByteArrayDataInputStream,ByteArrayDataOutputStream,PagedDataInputStream,PagedDataOutputStream
public interface FinishableStreamInterface for finishable stream - allows to skip/process data to identify size of remaining data.
-
-
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.longgetProcessedSize()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
-
getProcessedSize
long getProcessedSize()
Returns size of data processed so far.- Returns:
- size of data in bytes
-
-