Class FileSeekableStream

All Implemented Interfaces:
Seekable, Closeable, AutoCloseable

public final class FileSeekableStream extends SeekableInputStream
A SeekableInputStream implementation that uses random access directly to a File.
Version:
$Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/io/FileSeekableStream.java#4 $
See Also:
  • Field Details

  • Constructor Details

    • FileSeekableStream

      public FileSeekableStream(File pInput) throws FileNotFoundException
      Creates a FileSeekableStream that reads from the given File.
      Parameters:
      pInput - file to read from
      Throws:
      FileNotFoundException - if pInput does not exist
    • FileSeekableStream

      public FileSeekableStream(RandomAccessFile pInput)
      Creates a FileSeekableStream that reads from the given file. The RandomAccessFile needs only to be open in read ("r") mode.
      Parameters:
      pInput - file to read from
  • Method Details