Interface LargeText.Session

All Superinterfaces:
AutoCloseable, Closeable
Enclosing class:
LargeText

public static interface LargeText.Session extends Closeable
Represents the read session of the LargeText.Source. Methods follow the contracts of InputStream.
  • Method Details

    • skip

      long skip(long n) throws IOException
      Parameters:
      n - Number of bytes to skip ahead.
      Returns:
      Number of bytes that were skipped.
      Throws:
      IOException - if an error occurs. Skipping less than n bytes does not need to throw.
    • read

      int read(byte[] buf) throws IOException
      Parameters:
      buf - Buffer to fill.
      Returns:
      Number of bytes that were filled.
      Throws:
      IOException - if an error occurs.
    • read

      int read(byte[] buf, int offset, int length) throws IOException
      Parameters:
      buf - Buffer to fill.
      offset - Number of bytes to skip in buf.
      length - Number of bytes to read at most.
      Returns:
      Number of bytes that were read.
      Throws:
      IOException - if an error occurs.