|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTSim.TSimStream
public class TSimStream
Reads text from the given input stream connected to TSim and returns a stream of TSimInformation.
Field Summary | |
---|---|
protected java.io.StreamTokenizer |
sTokenizer
|
Constructor Summary | |
---|---|
TSimStream(java.io.InputStream in)
Creates a new TSimStream that reads from the given InputStream. |
Method Summary | |
---|---|
TSimInformation |
read()
Reads from the input stream and returns an object representing the message from TSim. |
protected int |
readInt(java.io.StreamTokenizer sTokenizer)
Help method that reads an integer from the tokenizer and returns it or throws an exception if the next token was not an integer. |
protected java.lang.String |
readString(java.io.StreamTokenizer sTokenizer)
Help method that reads a string from the tokenizer and returns it or throws an exception if the next token was not a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.StreamTokenizer sTokenizer
Constructor Detail |
---|
public TSimStream(java.io.InputStream in)
in
- the input stream to read text from.Method Detail |
---|
public TSimInformation read() throws UnparsableInputException
UnparsableInputException
- when the input from TSim is
not parsable.protected java.lang.String readString(java.io.StreamTokenizer sTokenizer) throws UnparsableInputException
sTokenizer
- the stream tokenizer to read from.
UnparsableInputException
- when the next token was not
a string.protected int readInt(java.io.StreamTokenizer sTokenizer) throws UnparsableInputException
sTokenizer
- the stream tokenizer to read from.
UnparsableInputException
- when the next token was not
an integer.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |