#include <RVNGStream.h>
Public Member Functions | |
RVNGInputStream () | |
virtual | ~RVNGInputStream () |
virtual bool | isStructured ()=0 |
Analyses the content of the input stream to see whether it is an OLE2 storage. More... | |
virtual unsigned | subStreamCount ()=0 |
virtual const char * | subStreamName (unsigned id)=0 |
virtual bool | existsSubStream (const char *name)=0 |
virtual RVNGInputStream * | getSubStreamByName (const char *name)=0 |
Extracts a named stream from an OLE2 storage. More... | |
virtual RVNGInputStream * | getSubStreamById (unsigned id)=0 |
virtual const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead)=0 |
Tries to read a given number of bytes starting from the current position inside the input stream. More... | |
virtual int | seek (long offset, RVNG_SEEK_TYPE seekType)=0 |
Moves to the next location inside the input stream. More... | |
virtual long | tell ()=0 |
Returns the actual position inside the input stream. More... | |
virtual bool | isEnd ()=0 |
Determines whether the current position is at the end of the stream. More... | |
|
inline |
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Extracts a named
stream from an OLE2 storage.
named
stream if it exists. named
stream does not exist inside the OLE2 storage or if the input stream is not an OLE2 storage. Implemented in librevenge::RVNGDirectoryStream, librevenge::RVNGStringStream, librevenge::RVNGMemoryInputStream, and librevenge::RVNGFileStream.
|
pure virtual |
Determines whether the current position is at the end of the stream.
Implemented in librevenge::RVNGDirectoryStream, librevenge::RVNGStringStream, librevenge::RVNGMemoryInputStream, and librevenge::RVNGFileStream.
|
pure virtual |
Analyses the content of the input stream to see whether it is an OLE2 storage.
Implemented in librevenge::RVNGDirectoryStream, librevenge::RVNGStringStream, librevenge::RVNGFileStream, and librevenge::RVNGMemoryInputStream.
|
pure virtual |
Tries to read a given number of bytes starting from the current position inside the input stream.
numBytes | Number of bytes desired to be read. |
numBytesRead | Number of bytes that were possible to be read. |
Implemented in librevenge::RVNGDirectoryStream, librevenge::RVNGStringStream, librevenge::RVNGMemoryInputStream, and librevenge::RVNGFileStream.
Referenced by librevenge::RVNGZipStream::getSubstream().
|
pure virtual |
Moves to the next location inside the input stream.
offset | The offset of the location inside the input stream to move to. It is relative either to the current position or to the beginning of the input stream depending on the value of the seekType parameter. |
seekType | Determines whether the offset is relative to the beginning of the input stream (RVNG_SEEK_SET ) or to the current position (RVNG_SEEK_CUR ). |
offset
is beyond the end of the input stream or before its beginning). Implemented in librevenge::RVNGDirectoryStream, librevenge::RVNGStringStream, librevenge::RVNGMemoryInputStream, and librevenge::RVNGFileStream.
Referenced by librevenge::getLength(), and librevenge::RVNGZipStream::isZipFile().
|
pure virtual |
|
pure virtual |
|
pure virtual |
Returns the actual position inside the input stream.
Implemented in librevenge::RVNGDirectoryStream, librevenge::RVNGStringStream, librevenge::RVNGMemoryInputStream, and librevenge::RVNGFileStream.
Referenced by librevenge::getLength().