| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--org.web3d.vrtp.util.ADUStream
        |
        +--org.web3d.vrtp.util.ADUStreamTCP
ADUStreamTCP
This class reads one or more ADUs from a TCP socket. There may be several ADUs transmitted across the TCP socket.
| Field Summary | |
| (package private)  byte[] | inputBuffer | 
| (package private)  int | offset | 
| Fields inherited from class org.web3d.vrtp.util.ADUStream | 
| isReading, protocol | 
| Constructor Summary | |
| ADUStreamTCP(java.net.Socket pSocket,
             ProtocolDescription pProtocol)constructor, called by subclasses. | |
| Method Summary | |
|  java.util.Vector | getADUs()Threaded access. | 
|  boolean | hasNext()returns true if there are more ADUs available from the input source. | 
| static void | main(java.lang.String[] args) | 
|  ADUData | readNext()Returns the next ADUData in the input stream. | 
|  void | resumeReading()resume reading again | 
|  void | run()Runnable interface, for threads | 
|  void | stopReading()stop thread reading | 
|  void | writeADU(ADUData pAdu)ADU to be written. | 
| Methods inherited from class java.lang.Object | 
|  | 
| Field Detail | 
byte[] inputBuffer
int offset
| Constructor Detail | 
public ADUStreamTCP(java.net.Socket pSocket,
                    ProtocolDescription pProtocol)
| Method Detail | 
public boolean hasNext()
hasNext in class ADUStreampublic ADUData readNext()
readNext in class ADUStreampublic java.util.Vector getADUs()
getADUs in class ADUStreampublic void stopReading()
stopReading in class ADUStreampublic void resumeReading()
resumeReading in class ADUStreampublic void run()
run in class ADUStreampublic void writeADU(ADUData pAdu)
ADUStreamwriteADU in class ADUStreampublic static void main(java.lang.String[] args)
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||