Class AbstractStreamHandle<L extends Location>

    • Constructor Detail

      • AbstractStreamHandle

        public AbstractStreamHandle()
    • Method Detail

      • setOffset

        public void setOffset​(long offset)
        Description copied from interface: StreamHandle
        Sets the offset of the handle to the given position.

        This method is intended to be called only in conjunction with reading from the input stream, or writing to the output stream. Otherwise, the contents may get out of sync.

        Specified by:
        setOffset in interface StreamHandle<L extends Location>
      • offset

        public long offset()
        Description copied from interface: DataHandle
        Returns the current offset in the stream.
        Specified by:
        offset in interface DataHandle<L extends Location>