ggz.common.dio
Class DIOInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by ggz.common.dio.DIOInputStream
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput
Direct Known Subclasses:
GGZCardInputStream

public class DIOInputStream
extends java.io.DataInputStream


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DIOInputStream(java.io.InputStream in)
           
 
Method Summary
 java.lang.String readString()
           
 void startPacket()
          Tells us how many bytes to expect from the server, including the bytes in this header.
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DIOInputStream

public DIOInputStream(java.io.InputStream in)
Method Detail

startPacket

public void startPacket()
                 throws java.io.IOException
Tells us how many bytes to expect from the server, including the bytes in this header. So if the packet contains two bytes of data the packet size will be 4; 2 bytes for this header and 2 for the data.

Throws:
java.io.IOException

readString

public java.lang.String readString()
                            throws java.io.IOException
Throws:
java.io.IOException