#include <RandomAccessFile.h>
Inheritance diagram for acdk::io::RandomAccessFile:
API: ACDK<br/>
Public Member Functions | |
RandomAccessFile (IN(RFile) file, IN(RString) mode, IN(RDataReader) dataReader=Nil, IN(RDataWriter) dataWriter=Nil) | |
Additional features not implemented by jdk:. | |
RandomAccessFile (IN(RString) name, IN(RString) mode, IN(RDataReader) dataReader=Nil, IN(RDataWriter) dataWriter=Nil) | |
Additional features not implemented by jdk:. | |
virtual | ~RandomAccessFile () |
virtual void | setIn (IN(RReader) reader) |
virtual void | setOut (IN(RWriter) writer) |
virtual void | write (const byte *cstr, int offset, int len) |
virtual void | write (byte b) |
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1); | |
virtual void | write (IN(RbyteArray) ch, int offset=0, int len=-1) |
writes to the unterlying data stream | |
virtual void | flush () |
virtual void | close () |
closes this Reader. | |
virtual jlong | seek (SeekPos seekrel, jlong seekpos) |
Set stream position in this Reader to given position. | |
virtual jlong | skip (jlong n) |
Move forwart into the stream. | |
virtual RFileDescriptor | getFD () |
virtual jlong | getFilePointer () |
virtual jlong | length () |
virtual int | read () |
read a single byte from stream | |
virtual int | read (IN(RbyteArray) buffer, int offset=0, int len=-1) |
read the len bytes into buffer at offset of the buffer | |
virtual int | read (byte *buffer, int offset, int len) |
virtual void | reset () |
if mark is set, set stream to mark point otherwise to begin of this stream. | |
virtual bool | ready () |
virtual void | seek (jlong pos) |
virtual void | setLength (jlong newLength) |
Note: on Non-Unix it may not work correctly, if newLength < currentLenght. | |
virtual int | skipBytes (int n) |
virtual bool | readBoolean () |
implemented DataReader | |
virtual char | readChar () |
implemented DataReader | |
virtual uc2char | readUcChar () |
implemented DataReader | |
virtual double | readDouble () |
implemented DataReader | |
virtual float | readFloat () |
implemented DataReader | |
virtual int | readInt () |
implemented DataReader | |
virtual jlong | readLong () |
implemented DataReader | |
virtual short | readShort () |
implemented DataReader | |
virtual RString | readString () |
JDK implements readUTF instead of readString. | |
virtual RString | readUTF () |
Not yet implemented (use readString instead). | |
virtual void | writeBoolean (bool b) |
implemented DataWriter | |
virtual void | writeChar (char b) |
implemented DataWriter | |
virtual void | writeUcChar (uc2char b) |
implemented DataWriter | |
virtual void | writeShort (short b) |
implemented DataWriter | |
virtual void | writeInt (int b) |
implemented DataWriter | |
virtual void | writeLong (jlong b) |
implemented DataWriter | |
virtual void | writeFloat (float b) |
implemented DataWriter | |
virtual void | writeDouble (double b) |
implemented DataWriter | |
virtual void | writeString (IN(RString) str) |
Writes the given string. | |
virtual void | writeUTF (IN(RString) str) |
Not yet implemented (Use writeString instead). | |
virtual RStorage | getStorage () |
implemented FileterWriter | |
virtual RString | getDeviceName () |
implemented Storage | |
virtual bool | isWriteable () |
implemented Storage | |
virtual bool | isReadable () |
implemented Storage | |
virtual RReader | getStorageReader () |
implemented FilterReader | |
virtual RWriter | getStorageWriter () |
implemented FilterWriter | |
Private Attributes | |
FileReaderWriterImpl | _inOut |
RFile | _file |
RDataReader | _dataReader |
RDataWriter | _dataWriter |
|
Additional features not implemented by jdk:.
|
|
Additional features not implemented by jdk:.
|
|
|
|
closes this Reader. Note: Some Reader must be closed explicitaly Note: Reader implementation must be avare from closing a reader more than one Reimplemented from acdk::io::Reader. |
|
Implements acdk::io::DataWriter. |
|
implemented Storage
Implements acdk::io::Storage. |
|
|
|
|
|
implemented FileterWriter
Implements acdk::io::DataReader. |
|
implemented FilterReader
Implements acdk::io::DataReader. |
|
implemented FilterWriter
Implements acdk::io::DataWriter. |
|
implemented Storage
Implements acdk::io::Storage. |
|
implemented Storage
Implements acdk::io::Storage. |
|
|
|
Reimplemented from acdk::io::Reader. |
|
read the len bytes into buffer at offset of the buffer
Reimplemented from acdk::io::Reader. |
|
read a single byte from stream
Reimplemented from acdk::io::Reader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
JDK implements readUTF instead of readString. The string will be terminated by '' and isn't UTF conform. Implements acdk::io::DataReader. |
|
implemented DataReader
Implements acdk::io::DataReader. |
|
Not yet implemented (use readString instead).
|
|
Reimplemented from acdk::io::Reader. |
|
if mark is set, set stream to mark point otherwise to begin of this stream.
Implements acdk::io::DataReader. |
|
|
|
Set stream position in this Reader to given position.
Implements acdk::io::DataReader. |
|
Implements acdk::io::DataReader. |
|
Note: on Non-Unix it may not work correctly, if newLength < currentLenght.
|
|
Implements acdk::io::DataWriter. |
|
Move forwart into the stream.
Implements acdk::io::DataReader. |
|
|
|
writes to the unterlying data stream
Implements acdk::io::DataWriter. |
|
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);
Implements acdk::io::DataWriter. |
|
Reimplemented from acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
Writes the given string. JDK implements readUTF instead of readString. The string will be terminated by '' and isn't UTF conform.
Implements acdk::io::DataWriter. |
|
implemented DataWriter
Implements acdk::io::DataWriter. |
|
Not yet implemented (Use writeString instead).
|
|
|
|
|
|
|
|
|