|
|||||||||
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 useMethod Detail |
public void close() throws java.io.IOException
public FifoMutex getMutex()
public Int16 readInt16() throws java.lang.Exception
Int16
from the input stream.Int16
NotSupportedException
- If an Int16
could not be readpublic 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 readpublic Int32 readInt32() throws java.lang.Exception
Int32
from the input stream.Int32
NotSupportedException
- If an Int32
could not be readpublic 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 readpublic Int64 readInt64() throws java.lang.Exception
Int64
from the input stream.Int64
NotSupportedException
- If an Int64
could not be readpublic 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 readpublic java.lang.Integer readInteger() throws java.lang.Exception
Integer
from the input stream.Integer
NotSupportedException
- If an Integer
could not be
readpublic 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
readpublic Float32 readFloat32() throws java.lang.Exception
Float32
from the input stream.Float32
NotSupportedException
- If a Float32
could not be
readpublic 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
readpublic Float64 readFloat64() throws java.lang.Exception
Float64
from the input stream.Float64
NotSupportedException
- If a Float64
could not be
readpublic 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
readpublic java.lang.Float readFloat() throws java.lang.Exception
Float
from the input stream.Float
NotSupportedException
- If a Float
could not be
readpublic 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
readpublic GBinary readBinary() throws java.lang.Exception
GBinary
from the input stream.GBinary
NotSupportedException
- If a GBinary
could not be
readpublic 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
readpublic GVector readList() throws java.lang.Exception
GVector
from the input stream.GVector
NotSupportedException
- If a GVector
could not be
readpublic 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
readpublic Symbol readSymbol() throws java.lang.Exception
Symbol
from the input stream.Symbol
NotSupportedException
- If a Symbol
could not be
readpublic 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
readpublic java.lang.String readString() throws java.lang.Exception
NotSupportedException
- If a string could not be readpublic java.lang.String tryReadString() throws java.lang.Exception
NotSupportedException
- If a string could not be readpublic GFrame readFrame() throws java.lang.Exception
NotSupportedException
- If a frame could not be readpublic GFrame tryReadFrame() throws java.lang.Exception
NotSupportedException
- If a frame could not be readpublic 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 |