Class TrinoInputStream

java.lang.Object
java.io.InputStream
io.trino.filesystem.TrinoInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class TrinoInputStream extends InputStream
  • Constructor Details

    • TrinoInputStream

      public TrinoInputStream()
  • Method Details

    • getPosition

      public abstract long getPosition() throws IOException
      Returns:
      current position from the start of the file
      Throws:
      IOException
    • seek

      public abstract void seek(long position) throws IOException
      Parameters:
      position - the new position from the start of the file
      Throws:
      IOException - if the new position is negative, or an error occurs while seeking
      EOFException - if the new position is larger than the file size