cpw.mods.fml.repackage.com.nothome.delta

## Interface SeekableSource

- All Superinterfaces:
    AutoCloseable, Closeable
  All Known Implementing Classes:
    ByteBufferSeekableSource, RandomAccessFileSeekableSource

      public interface SeekableSource
      extends Closeable

  For sources of random-access data, such as `RandomAccessFile`.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `read(ByteBuffer bb)` Reads up to `Buffer.remaining()` bytes from the source, returning the number of bytes read, or -1 if no bytes were read and EOF was reached.
    `void` | `seek(long pos)` Sets the position for the next `read(ByteBuffer)`.

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### seek

          void seek(long pos)
                    throws IOException

      Sets the position for the next `read(ByteBuffer)`.
      Throws:
        `IOException`

    - #### read

          int read(ByteBuffer bb)
                   throws IOException

      Reads up to `Buffer.remaining()` bytes from the source, returning the number of bytes read, or -1 if no bytes were read and EOF was reached.
      Throws:
        `IOException`