#include <InputStream.h>
Public Member Functions | |
virtual int32 | read ()=0 |
virtual int32 | read (char *pDataOut, int32 size)=0 |
virtual int32 | skip (int32 n)=0 |
virtual int32 | available () const =0 |
virtual int32 io::InputStream::read | ( | ) | [pure virtual] |
Returns a byte of data from this input stream.
Implemented in io::ByteArrayInputStream, and io::FileInputStream.
virtual int32 io::InputStream::read | ( | char * | pDataOut, | |
int32 | size | |||
) | [pure virtual] |
Tries to read specified number of bytes from the stream. Doesn't block the caller if specified number of bytes isn't available.
pDataOut | The data buffer | |
size | The size of buffer |
Implemented in io::ByteArrayInputStream, and io::FileInputStream.
virtual int32 io::InputStream::skip | ( | int32 | n | ) | [pure virtual] |
Tries to skip over n bytes from the stream.
n | The number to be skipped |
Implemented in io::ByteArrayInputStream, and io::FileInputStream.
virtual int32 io::InputStream::available | ( | ) | const [pure virtual] |
Returns the number of bytes that can be read from the stream without blocking.
Implemented in io::ByteArrayInputStream, and io::FileInputStream.