#include <ByteArrayOutputStream.h>
Public Member Functions | |
ByteArrayOutputStream () | |
ByteArrayOutputStream (int size) | |
virtual | ~ByteArrayOutputStream () |
void | reset () throw () |
int | size () throw () |
bytearray * | toByteArray () |
void | toByteArray (bytearray &b) |
void | toByteArray (byte *data, int offset, int length) |
void | writeTo (OutputStream &out) throw (IOException) |
virtual void | close () throw (IOException) |
virtual void | flush () throw (IOException) |
virtual void | write (byte b) throw (IOException) |
virtual void | write (const byte *data, int offset, int length) throw (IOException) |
virtual void | write (const bytearray &b) throw (IOException) |
Protected Attributes | |
bytearray | buf |
int | count |
beecrypt::io::ByteArrayOutputStream::ByteArrayOutputStream | ( | ) |
beecrypt::io::ByteArrayOutputStream::ByteArrayOutputStream | ( | int | size | ) |
virtual beecrypt::io::ByteArrayOutputStream::~ByteArrayOutputStream | ( | ) | [virtual] |
virtual void beecrypt::io::ByteArrayOutputStream::close | ( | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::OutputStream.
virtual void beecrypt::io::ByteArrayOutputStream::flush | ( | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::OutputStream.
void beecrypt::io::ByteArrayOutputStream::reset | ( | ) | throw () |
int beecrypt::io::ByteArrayOutputStream::size | ( | ) | throw () |
void beecrypt::io::ByteArrayOutputStream::toByteArray | ( | byte * | data, | |
int | offset, | |||
int | length | |||
) |
void beecrypt::io::ByteArrayOutputStream::toByteArray | ( | bytearray & | b | ) |
bytearray* beecrypt::io::ByteArrayOutputStream::toByteArray | ( | ) |
virtual void beecrypt::io::ByteArrayOutputStream::write | ( | const bytearray & | b | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::OutputStream.
virtual void beecrypt::io::ByteArrayOutputStream::write | ( | const byte * | data, | |
int | offset, | |||
int | length | |||
) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::OutputStream.
virtual void beecrypt::io::ByteArrayOutputStream::write | ( | byte | b | ) | throw (IOException) [virtual] |
Implements beecrypt::io::OutputStream.
void beecrypt::io::ByteArrayOutputStream::writeTo | ( | OutputStream & | out | ) | throw (IOException) |
bytearray beecrypt::io::ByteArrayOutputStream::buf [protected] |
int beecrypt::io::ByteArrayOutputStream::count [protected] |