Package org.exbin.auxiliary.paged_data
Interface FinishableStream
-
- All Known Implementing Classes:
ByteArrayDataInputStream
,ByteArrayDataOutputStream
,PagedDataInputStream
,PagedDataOutputStream
public interface FinishableStream
Interface 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 long
finish()
Reads remaining data and returns size of all data processed by this stream.long
getProcessedSize()
Returns size of data processed so far.
-
-
-
Method Detail
-
finish
long finish() throws java.io.IOException
Reads 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
-
-