|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--galaxy.io.GalaxyInputStream
This class provides methods for reading data from a Galaxy Communicator connection.
| Constructor Summary | |
GalaxyInputStream(java.io.InputStream in)
Constructor |
|
| Method Summary | |
void |
close()
|
FifoMutex |
getMutex()
Returns this input stream's mutex. |
GBinary |
readBinary()
Reads a GBinary from the input stream. |
java.lang.Float |
readFloat()
Reads a Float from the input stream. |
Float32 |
readFloat32()
Reads a Float32 from the input stream. |
Float64 |
readFloat64()
Reads a Float64 from the input stream. |
GFrame |
readFrame()
Reads a frame from the input stream. |
Int16 |
readInt16()
Reads an Int16 from the input stream. |
Int32 |
readInt32()
Reads an Int32 from the input stream. |
Int64 |
readInt64()
Reads an Int64 from the input stream. |
java.lang.Integer |
readInteger()
Reads an Integer from the input stream. |
GVector |
readList()
Reads a GVector from the input stream. |
GalaxyMessage |
readMessage()
Reads a message from the input stream. |
java.lang.Object |
readObject()
Reads an object from the input stream. |
java.lang.String |
readString()
Reads a string from the input stream. |
Symbol |
readSymbol()
Reads a Symbol from the input stream. |
GBinary |
tryReadBinary()
Reads a GBinary from the input stream if data is available. |
java.lang.Float |
tryReadFloat()
Reads a Float from the input stream if data is available. |
Float32 |
tryReadFloat32()
Reads a Float32 from the input stream if data is available. |
Float64 |
tryReadFloat64()
Reads a Float64 from the input stream if data is available. |
GFrame |
tryReadFrame()
Reads a frame from the input stream if data is available. |
Int16 |
tryReadInt16()
Reads an Int16 from the input stream if data is available. |
Int32 |
tryReadInt32()
Reads an Int32 from the input stream if data is available. |
Int64 |
tryReadInt64()
Reads an Int64 from the input stream if data is available. |
java.lang.Integer |
tryReadInteger()
Reads an Integer from the input stream if data is
available. |
GVector |
tryReadList()
Reads a GVector from the input stream if data is available. |
GalaxyMessage |
tryReadMessage()
Reads a message from the input stream if data is available. |
java.lang.Object |
tryReadObject()
Reads an object from the input stream if data is available. |
java.lang.String |
tryReadString()
Reads a string from the input stream if data is available. |
Symbol |
tryReadSymbol()
Reads a Symbol from the input stream if data is available. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GalaxyInputStream(java.io.InputStream in)
throws java.io.IOException
in - the input stream to use| Method Detail |
public void close()
throws java.io.IOException
public FifoMutex getMutex()
public Int16 readInt16()
throws java.lang.Exception
Int16 from the input stream.Int16NotSupportedException - If an Int16 could not be read
public Int16 tryReadInt16()
throws java.lang.Exception
Int16 from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Int16 or null if no data was available or
there was an errorNotSupportedException - If an Int16 could not be read
public Int32 readInt32()
throws java.lang.Exception
Int32 from the input stream.Int32NotSupportedException - If an Int32 could not be read
public Int32 tryReadInt32()
throws java.lang.Exception
Int32 from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Int32 or null if no data was available or
there was an errorNotSupportedException - If an Int32 could not be read
public Int64 readInt64()
throws java.lang.Exception
Int64 from the input stream.Int64NotSupportedException - If an Int64 could not be read
public Int64 tryReadInt64()
throws java.lang.Exception
Int64 from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Int64 or null if no data was available or
there was an errorNotSupportedException - If an Int64 could not be read
public java.lang.Integer readInteger()
throws java.lang.Exception
Integer from the input stream.IntegerNotSupportedException - If an Integer could not be
read
public java.lang.Integer tryReadInteger()
throws java.lang.Exception
Integer from the input stream if data is
available. Note that this method can not detect if the connection has
gone down.Integer or null if no data was available or
there was an errorNotSupportedException - If an Integer could not be
read
public Float32 readFloat32()
throws java.lang.Exception
Float32 from the input stream.Float32NotSupportedException - If a Float32 could not be
read
public Float32 tryReadFloat32()
throws java.lang.Exception
Float32 from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Float32 or null if no data was available or
there was an errorNotSupportedException - If a Float32 could not be
read
public Float64 readFloat64()
throws java.lang.Exception
Float64 from the input stream.Float64NotSupportedException - If a Float64 could not be
read
public Float64 tryReadFloat64()
throws java.lang.Exception
Float64 from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Float64 or null if no data was available or
there was an errorNotSupportedException - If a Float64 could not be
read
public java.lang.Float readFloat()
throws java.lang.Exception
Float from the input stream.FloatNotSupportedException - If a Float could not be
read
public java.lang.Float tryReadFloat()
throws java.lang.Exception
Float from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Float or null if no data was available or
there was an errorNotSupportedException - If a Float could not be
read
public GBinary readBinary()
throws java.lang.Exception
GBinary from the input stream.GBinaryNotSupportedException - If a GBinary could not be
read
public GBinary tryReadBinary()
throws java.lang.Exception
GBinary from the input stream if data is available.
Note that this method can not detect if the connection has gone down.GBinary or null if no data was available or
there was an errorNotSupportedException - If a GBinary could not be
read
public GVector readList()
throws java.lang.Exception
GVector from the input stream.GVectorNotSupportedException - If a GVector could not be
read
public GVector tryReadList()
throws java.lang.Exception
GVector from the input stream if data is available.
Note that this method can not detect if the connection has gone down.GVector or null if no data was available or
there was an errorNotSupportedException - If a GVector could not be
read
public Symbol readSymbol()
throws java.lang.Exception
Symbol from the input stream.SymbolNotSupportedException - If a Symbol could not be
read
public Symbol tryReadSymbol()
throws java.lang.Exception
Symbol from the input stream if data is available.
Note that this method can not detect if the connection has gone down.Symbol or null if no data was available or
there was an errorNotSupportedException - If a Symbol could not be
read
public java.lang.String readString()
throws java.lang.Exception
NotSupportedException - If a string could not be read
public java.lang.String tryReadString()
throws java.lang.Exception
NotSupportedException - If a string could not be read
public GFrame readFrame()
throws java.lang.Exception
NotSupportedException - If a frame could not be read
public GFrame tryReadFrame()
throws java.lang.Exception
NotSupportedException - If a frame could not be read
public GalaxyMessage readMessage()
throws java.lang.Exception
public GalaxyMessage tryReadMessage()
throws java.lang.Exception
public java.lang.Object readObject()
throws java.lang.Exception
public java.lang.Object tryReadObject()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||