Interface Bitstream.ByteStream<T>

All Known Implementing Classes:
Bitstream.ByteArrayStream, Bitstream.ByteBufferStream, Bitstream.ByteInputStream, Bitstream.ByteOutputStream
Enclosing class:
Bitstream<T>

public static interface Bitstream.ByteStream<T>
General byte stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true if stream can handle input, i.e.
    boolean
    Return true if stream can handle output, i.e.
    void
    Closing the underlying stream, implies flush().
    void
    Synchronizes all underlying output stream operations, or do nothing.
    Returns the underlying stream
    void
    mark(int readLimit)
    Set markpos to current position, allowing the stream to be reset().
    long
    Returns the byte position in the stream.
    long
    position(long newPosition)
    Sets this stream's position.
    int
    Reads one byte from the stream.
    void
    Reset stream position to markpos as set via mark(int).
    void
    setStream(T stream)
    Sets the underlying stream, without close()ing the previous one.
    long
    skip(long n)
    It is implementation dependent, whether backward skip giving a negative number is supported or not.
    int
    write(byte val)
    Writes one byte, to the stream.