Interface Stream

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractBufferingStream, ByteArrayWrappedStream, HDFSStream, HTTP11Stream, RandomAccessFileStream, SimpleStream

public interface Stream extends Closeable
Alternate simplified interface for accessing data from an underlying source of bytes.
Author:
brad
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
     
    int
    read(byte[] bytes, int off, int len)
     
    long
    setOffset(long offset)
     

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • getOffset

      long getOffset()
    • setOffset

      long setOffset(long offset) throws IOException
      Throws:
      IOException
    • read

      int read(byte[] bytes, int off, int len) throws IOException
      Throws:
      IOException
    • atEof

      boolean atEof()