|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--moka.lang.Object | +--moka.io.IOStream
This class represents an Input/Output data stream.
Field Summary | |
boolean |
error
Is the stream in error ? Should be only read. |
boolean |
opened
Is the stream opened ? Should be only read. |
Constructor Summary | |
IOStream()
Creates an IOStream. |
Method Summary | |
abstract void |
close()
Closes the stream. |
void |
finalize()
Frees the memory of system ressources used by this IOStream object. |
abstract void |
open()
Opens the stream. |
boolean |
readBoolean()
Reads a boolean. |
abstract char |
readByte()
Reads an 8 bit byte. |
abstract void |
readBytes(moka.io.char_p buffer,
short len)
Copies to a buffer of bytes up to the specified length bytes read from the stream. |
char |
readChar()
Reads a char. |
moka.io.char_p |
readChars(short len)
Reads an ANSI string. |
double |
readDouble()
Reads a double. |
int |
readInt()
Reads an int. |
long |
readLong()
Reads a long. |
moka.lang.Object |
readObject()
Reads a Object. |
short |
readShort()
Reads a short. |
java.lang.String |
readString()
Reads a String object. |
void |
writeBoolean(boolean val)
Writes a boolean. |
abstract void |
writeByte(char val)
Writes an 8 bit byte. |
abstract void |
writeBytes(moka.io.char_p buffer,
short len)
Writes a buffer of bytes up to the specified length. |
void |
writeChar(char val)
Writes a char. |
void |
writeChars(moka.io.char_p val)
Writes an ANSI string. |
void |
writeDouble(double val)
Writes a double. |
void |
writeInt(int val)
Writes an int. |
void |
writeLong(long val)
Writes a long. |
void |
writeObject(moka.lang.Object val)
Writes an Object. |
void |
writeShort(short val)
Writes an short. |
void |
writeString(java.lang.String val)
Writes a String object. |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean opened
public boolean error
Constructor Detail |
public IOStream()
Method Detail |
public abstract void open()
public abstract void close()
public abstract void writeByte(char val)
val
- the byte value to be writtenpublic abstract void writeBytes(moka.io.char_p buffer, short len)
buffer
- the buffer of bytes to be writtenlen
- the specified lengthpublic abstract char readByte()
public abstract void readBytes(moka.io.char_p buffer, short len)
buffer
- the buffer of bytes where the bytes will be copiedlen
- the specified lengthpublic void finalize()
finalize
in class Object
public void writeBoolean(boolean val)
val
- the boolean value to be writtenpublic void writeChar(char val)
val
- the char value to be writtenpublic void writeDouble(double val)
val
- the double value to be writtenpublic void writeShort(short val)
val
- the short value to be writtenpublic void writeInt(int val)
val
- the int value to be writtenpublic void writeLong(long val)
val
- the long value to be writtenpublic void writeString(java.lang.String val)
val
- the String object to be writtenpublic void writeChars(moka.io.char_p val)
val
- the ANSI string to be writtenpublic void writeObject(moka.lang.Object val)
val
- the Object to be writtenpublic boolean readBoolean()
public char readChar()
public double readDouble()
public short readShort()
public int readInt()
public long readLong()
public java.lang.String readString()
public moka.io.char_p readChars(short len)
len
- the length of the ANSI string
public moka.lang.Object readObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |