Home

OutputStream

An abstract output stream

Interface

Operations

Close

Closes the stream

method : public : virutal : Close() ~ Nil

WriteBuffer

Writes bytes from a buffer

method : public : virutal : WriteBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Int
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferByte[]input buffer

Return
TypeDescription
Intnumber of values written

Writes characters from a buffer

method : public : virutal : WriteBuffer(offset:Int, num:Int, buffer:Char[]) ~ Int
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferChar[]input buffer

Return
TypeDescription
Intnumber of values written

WriteByte

Writes a byte

method : public : virutal : WriteByte(b:Int) ~ Bool
Parameters
NameTypeDescription
bIntbyte to write

Return
TypeDescription
Booltrue if byte was written, false otherwise

WriteString

Writes a character string

method : public : virutal : WriteString(str:String) ~ Nil
Parameters
NameTypeDescription
strStringstring to be written