Package it.unimi.dsi.fastutil.io
Interface RepositionableStream
-
- All Known Implementing Classes:
FastBufferedInputStream,FastBufferedOutputStream,FastByteArrayInputStream,FastByteArrayOutputStream,FastMultiByteArrayInputStream,InspectableFileCachedInputStream
public interface RepositionableStreamA basic interface specifying positioning methods for a byte stream.- Since:
- 4.4
- Author:
- Sebastiano Vigna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longposition()Returns the current stream position.voidposition(long newPosition)Sets the current stream position.
-
-
-
Method Detail
-
position
void position(long newPosition) throws java.io.IOExceptionSets the current stream position.- Parameters:
newPosition- the new stream position.- Throws:
java.io.IOException
-
position
long position() throws java.io.IOExceptionReturns the current stream position.- Returns:
- the current stream position.
- Throws:
java.io.IOException
-
-