#include <BinaryDataWriter.h>
Inheritance diagram for acdk::io::BinaryDataWriter:
Overtakes the role of java.io.DataOutputStream. API: ACDK
Public Member Functions | |
BinaryDataWriter (IN(RWriter) out, acdk::lang::Endian en=acdk::lang::BigEndian) | |
virtual | ~BinaryDataWriter () |
overwrite void | flush () |
overwrite void | write (byte c) |
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1); | |
virtual void | write (const byte *cstr, int offset, int len) |
virtual void | write (IN(RbyteArray) ch, int offset=0, int len=-1) |
default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len); | |
void | setOut (IN(RWriter) writer) |
RStorage | getStorage () |
Gets the storage reader. | |
RWriter | getStorageWriter () |
returns the unfiltered Writer | |
virtual void | writeBoolean (bool b) |
virtual void | writeChar (char b) |
virtual void | writeUcChar (uc2char b) |
virtual void | writeShort (short b) |
virtual void | writeInt (int b) |
virtual void | writeLong (jlong b) |
virtual void | writeFloat (float b) |
virtual void | writeDouble (double b) |
virtual void | writeString (IN(RString) str) |
virtual void | writeOpaque (IN(RbyteArray) array) |
writes the data as opaque data. | |
acdk::lang::Endian | endian () |
void | endian (acdk::lang::Endian end) |
Private Attributes | |
acdk::lang::Endian | _endian |
|
|
|
|
|
|
|
|
|
Reimplemented from acdk::io::AbstractFilterWriter. |
|
Gets the storage reader. If this contains an FilterReader instead of a Storage, the storage reader of this filter reader will be returned (recursive). Reimplemented from acdk::io::AbstractFilterWriter. |
|
returns the unfiltered Writer
Reimplemented from acdk::io::AbstractFilterWriter. |
|
Reimplemented from acdk::io::AbstractFilterWriter. |
|
default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);
Reimplemented from acdk::io::AbstractFilterWriter. |
|
Reimplemented from acdk::io::AbstractFilterWriter. |
|
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);
Reimplemented from acdk::io::AbstractFilterWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
writes the data as opaque data. DataWriter may apply some encoding Reimplemented from acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
Implements acdk::io::DataWriter. |
|
|