#include <ByteArrayInputStream.h>
Public Member Functions | |
ByteArrayInputStream (const byte *data, size_t offset, size_t length) | |
ByteArrayInputStream (const bytearray &b) | |
virtual | ~ByteArrayInputStream () |
virtual off_t | available () throw (IOException) |
virtual void | close () throw (IOException) |
virtual void | mark (off_t readlimit) throw () |
virtual bool | markSupported () throw () |
virtual int | read () throw (IOException) |
virtual int | read (byte *data, size_t offset, size_t length) throw (IOException) |
virtual int | read (bytearray &b) throw (IOException) |
virtual void | reset () throw (IOException) |
virtual off_t | skip (off_t n) throw (IOException) |
Protected Attributes | |
bytearray | _buf |
size_t | _count |
size_t | _mark |
size_t | _pos |
beecrypt::io::ByteArrayInputStream::ByteArrayInputStream | ( | const byte * | data, | |
size_t | offset, | |||
size_t | length | |||
) |
beecrypt::io::ByteArrayInputStream::ByteArrayInputStream | ( | const bytearray & | b | ) |
virtual beecrypt::io::ByteArrayInputStream::~ByteArrayInputStream | ( | ) | [virtual] |
virtual off_t beecrypt::io::ByteArrayInputStream::available | ( | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual void beecrypt::io::ByteArrayInputStream::close | ( | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual void beecrypt::io::ByteArrayInputStream::mark | ( | off_t | readlimit | ) | throw () [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual bool beecrypt::io::ByteArrayInputStream::markSupported | ( | ) | throw () [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual int beecrypt::io::ByteArrayInputStream::read | ( | bytearray & | b | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual int beecrypt::io::ByteArrayInputStream::read | ( | byte * | data, | |
size_t | offset, | |||
size_t | length | |||
) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual int beecrypt::io::ByteArrayInputStream::read | ( | ) | throw (IOException) [virtual] |
Implements beecrypt::io::InputStream.
virtual void beecrypt::io::ByteArrayInputStream::reset | ( | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::InputStream.
virtual off_t beecrypt::io::ByteArrayInputStream::skip | ( | off_t | n | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::InputStream.
bytearray beecrypt::io::ByteArrayInputStream::_buf [protected] |
size_t beecrypt::io::ByteArrayInputStream::_count [protected] |
size_t beecrypt::io::ByteArrayInputStream::_mark [protected] |
size_t beecrypt::io::ByteArrayInputStream::_pos [protected] |