Interface RepositionableStream

All Known Implementing Classes:
FastBufferedInputStream, FastBufferedOutputStream, FastByteArrayInputStream, FastByteArrayOutputStream, FastMultiByteArrayInputStream, InspectableFileCachedInputStream

public interface RepositionableStream
A basic interface specifying positioning methods for a byte stream.
Since:
4.4
Author:
Sebastiano Vigna
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the current stream position.
    void
    position(long newPosition)
    Sets the current stream position.
  • Method Details

    • position

      void position(long newPosition) throws IOException
      Sets the current stream position.
      Parameters:
      newPosition - the new stream position.
      Throws:
      IOException
    • position

      long position() throws IOException
      Returns the current stream position.
      Returns:
      the current stream position.
      Throws:
      IOException