|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--com.pdmfc.tea.modules.tos.STosObj
|
+--com.pdmfc.tea.modules.io.SOutput
Instances of this class represent output streams.
| Constructor Summary | |
SOutput(STosClass myClass)
The constructor initializes the object internal state. |
|
| Method Summary | |
void |
close()
Closes the underlying output stream. |
java.lang.Object |
close(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
java.lang.Object |
constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
flush()
Flushes the underlying output stream. |
java.lang.Object |
flush(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
static java.lang.String |
getTosClassName()
|
static SOutput |
newInstance(SContext context)
|
void |
open(java.io.OutputStream out)
Sets up the underlying stream. |
java.lang.Object |
printf(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
printf(java.lang.String formatString,
java.lang.Object[] args,
int firstArg)
Send a string to the output. |
void |
setLineBuffering(boolean flag)
Sets the buffering mode. |
java.lang.Object |
setLineBuffering(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
write(byte[] buffer,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to the underlying output stream. |
void |
write(double value)
Writes the decimal representation of a real value into the underlying output stream. |
void |
write(int value)
Writes the decimal representation of an integer into the underlying output stream. |
void |
write(SObjByteArray bytes)
Writes len bytes from the specified byte array starting at offset off to the underlying output stream. |
java.lang.Object |
write(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
write(java.lang.String aString)
Writes a string into the underlying output stream. |
void |
writeln()
|
void |
writeln(double value)
Writes the decimal representation of an real value into the underlying output stream with a trailing end-of-line. |
void |
writeln(int value)
Writes the decimal representation of an integer value into the underlying output stream with a trailing end-of-line. |
java.lang.Object |
writeln(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
writeln(java.lang.String aString)
Writes a string into the underlying output stream with a trailing end-of-line. |
| Methods inherited from class com.pdmfc.tea.modules.tos.STosObj |
exec, getTosClass, init, part, selfObj |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SOutput(STosClass myClass)
throws STeaException
myClass - The STosClass object for this object.| Method Detail |
public java.lang.Object constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
public void open(java.io.OutputStream out)
out - The OutputStream associated with this object.
public java.lang.Object setLineBuffering(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
public void setLineBuffering(boolean flag)
flag - If true then line buffering should be used.
Otherwise full beffering will be used.
public java.lang.Object write(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
public void write(byte[] buffer,
int off,
int len)
throws java.io.IOException
public void write(SObjByteArray bytes)
throws java.io.IOException
public void write(java.lang.String aString)
throws java.io.IOException,
SIOException
aString - The string to be output.SIOException - Thrown if the stream has not yet been opened or if itwas closed.
public void write(int value)
throws java.io.IOException,
SIOException
value - The value to be output.SIOException - Thrown if the stream has not yet been opened or if it was closed.
public void write(double value)
throws java.io.IOException,
SIOException
value - The value to be output.SIOException - Thrown if the stream has not yet been opened or if it was closed.
public java.lang.Object writeln(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
public void writeln()
throws java.io.IOException,
SIOException
public void writeln(java.lang.String aString)
throws java.io.IOException,
SIOException
aString - The string to be output.SIOException - Thrown if the stream has not yet been opened or if it was closed.
public void writeln(int value)
throws java.io.IOException,
SIOException
value - The value to be output.SIOException - Thrown if the stream has not yet been opened or if it was closed.
public void writeln(double value)
throws java.io.IOException,
SIOException
value - The value to be output.SIOException - Thrown if the stream has not yet been opened or if it was closed.
public java.lang.Object printf(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
public void printf(java.lang.String formatString,
java.lang.Object[] args,
int firstArg)
throws java.io.IOException,
SIOException,
STypeException,
SNumArgException
formatString - The "printf" like format string.args - Array of objects that may be referenced by the format string.firstArg - Index into the args array referencing the first
element of the array that will be used from the format
string.
public java.lang.Object flush(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SIOException
public void flush()
throws java.io.IOException,
SIOException
SIOException - Thrown if there were problems flushing the stream or if the
stream has not yet been opened or if it was closed.
public java.lang.Object close(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SIOException
public void close()
throws java.io.IOException
java.io.IOException - Throw if there where any problems
while closing the input stream.public static java.lang.String getTosClassName()
public static SOutput newInstance(SContext context)
throws STeaException
|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||