|
Tea Java Runtime API Version 3.2.5 |
|||||||
| 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.SInput
public class SInput
Instances of this class represent input streams.
| Constructor Summary | |
|---|---|
SInput(STosClass myClass)
The constructor initializes the object internal state. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying input 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)
The implementation for the constructor method. |
void |
copyTo(SContext context,
STosObj out)
|
int |
copyTo(SContext context,
STosObj out,
int total)
|
java.lang.Object |
copyTo(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
void |
copyTo(SOutput out)
Copies the remaining contents of the underlying input stream into the output stream received as argument. |
java.io.InputStream |
getInputStream()
Fetches the underlying java.io.InputStream associated
with this TInput. |
static java.lang.String |
getTosClassName()
|
static SInput |
newInstance(SContext context)
|
void |
open(java.io.InputStream in)
Sets up the underlying stream. |
java.lang.String |
readln()
Reads a line from the underlying input stream. |
java.lang.Object |
readln(SObjFunction obj,
SContext context,
java.lang.Object[] args)
|
| 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 SInput(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
constructor method.
STeaExceptionpublic void open(java.io.InputStream in)
in - The InputStream associated with this object.public java.io.InputStream getInputStream()
java.io.InputStream associated
with this TInput.
java.io.InputStream specified in the last
call to open(InputStream)
public java.lang.Object readln(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws SIOException
SIOException
public java.lang.String readln()
throws java.io.IOException,
SIOException
SIOException - Thrown if the input stream is not opened.
java.io.IOException - Thrown if there were any problems reading from the stream.
public java.lang.Object copyTo(SObjFunction obj,
SContext context,
java.lang.Object[] args)
throws STeaException
STeaException
public void copyTo(SOutput out)
throws java.io.IOException,
SIOException
java.io.IOException
SIOException
public void copyTo(SContext context,
STosObj out)
throws java.io.IOException,
STeaException
java.io.IOException
STeaException
public int copyTo(SContext context,
STosObj out,
int total)
throws java.io.IOException,
STeaException
total - The maximum number of bytes to copy.
java.io.IOException
STeaException
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 SInput newInstance(SContext context)
throws STeaException
STeaException
|
Tea Java Runtime API Version 3.2.5 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||