seekableInputStream Class Referenceabstract
Inheritance diagram for seekableInputStream:
Collaboration diagram for seekableInputStream:

Public Member Functions

virtual size_t getPosition () const =0
virtual void seek (const size_t pos)=0
- Public Member Functions inherited from inputStream
virtual bool eof () const =0
virtual void reset ()=0
virtual size_t read (byte_t *const data, const size_t count)=0
virtual size_t skip (const size_t count)=0
- Public Member Functions inherited from stream
virtual ~stream ()
virtual size_t getBlockSize ()

Additional Inherited Members

- Protected Member Functions inherited from object
 object ()
 object (const object &)
objectoperator= (const object &)
virtual ~object ()

Detailed Description

An input stream that allows seeking within the input.

Member Function Documentation

virtual size_t getPosition ( ) const
pure virtual

Returns the current position in this stream.

the offset from the beginning of the stream, in bytes, at which the next read occurs

Implemented in parserInputStreamAdapter, seekableInputStreamRegionAdapter, inputStreamStringProxyAdapter, inputStreamAdapter, inputStreamStringAdapter, and inputStreamByteBufferAdapter.

virtual void seek ( const size_t  pos)
pure virtual

Sets the position, measured from the beginning of this stream, at which the next read occurs.

posthe offset position, measured in bytes from the beginning of the stream, at which to set the stream pointer.

Implemented in seekableInputStreamRegionAdapter, inputStreamStringProxyAdapter, parserInputStreamAdapter, inputStreamAdapter, inputStreamStringAdapter, and inputStreamByteBufferAdapter.

The documentation for this class was generated from the following file: