io::ByteArrayInputStream Class Reference

A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read method. More...

#include <ByteArrayInputStream.h>

Inheritance diagram for io::ByteArrayInputStream:

Inheritance graph
[legend]
Collaboration diagram for io::ByteArrayInputStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ByteArrayInputStream (const void *pData, int32 size)
virtual ~ByteArrayInputStream ()
void reset (const void *pData, int32 size)
int32 read ()
int32 read (char *pDataOut, int32 size)
int32 skip (int32 n)
int32 available () const
const char * toString ()


Detailed Description

A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read method.

Constructor & Destructor Documentation

io::ByteArrayInputStream::ByteArrayInputStream ( const void *  pData,
int32  size 
)

Constructor

virtual io::ByteArrayInputStream::~ByteArrayInputStream (  )  [virtual]

Destructor


Member Function Documentation

void io::ByteArrayInputStream::reset ( const void *  pData,
int32  size 
)

Resets with new input buffer. Note that the contents of the buffer is duplicated so the buffer can be freed immediately after ByteArrayInputStream constructor returns.

int32 io::ByteArrayInputStream::read (  )  [virtual]

See also:
InputStream::read()

Implements io::InputStream.

int32 io::ByteArrayInputStream::read ( char *  pDataOut,
int32  size 
) [virtual]

See also:
InputStream::read(void* pDataOut, int32 size)

Implements io::InputStream.

int32 io::ByteArrayInputStream::skip ( int32  n  )  [virtual]

See also:
InputStream::int32 skip(int32 n)

Implements io::InputStream.

int32 io::ByteArrayInputStream::available (  )  const [virtual]

const char* io::ByteArrayInputStream::toString (  )  [virtual]

See also:
Object::toString()

Implements Object.


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

Generated on Mon Mar 3 10:53:09 2008 for Aika by  doxygen 1.5.5