|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pdmfc.tea.modules.tos.STosObj
com.pdmfc.tea.modules.io.SOutput
public class 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.
STeaException| Method Detail |
|---|
public java.lang.Object constructor(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
STeaExceptionpublic 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
SRuntimeExceptionpublic 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
SRuntimeException
public void write(byte[] buffer,
int off,
int len)
throws java.io.IOException
java.io.IOException
public void write(SObjByteArray bytes)
throws java.io.IOException
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.
java.io.IOException
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.
java.io.IOException
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.
java.io.IOException
public java.lang.Object writeln(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
SRuntimeException
public void writeln()
throws java.io.IOException,
SIOException
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.
java.io.IOException
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.
java.io.IOException
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.
java.io.IOException
public java.lang.Object printf(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SRuntimeException
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.
java.io.IOException
SIOException
STypeException
SNumArgException
public java.lang.Object flush(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SIOException
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.
java.io.IOException
public java.lang.Object close(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SIOException
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
STeaException
|
Tea Java Runtime API Version 3.2.4 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||