Class PacketIO


  • public class PacketIO
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PacketIO​(java.io.InputStream is, java.io.OutputStream os)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()  
      byte[] readBytes​(byte[] buff, int offset, int len)  
      int readInt​(int len)  
      long readLong​(int len)  
      void writeByte​(byte b)  
      void writeBytes​(byte[] bytes, int offset, int len)  
      void writeInt​(int value, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PacketIO

        public PacketIO​(java.io.InputStream is,
                        java.io.OutputStream os)
    • Method Detail

      • readInt

        public int readInt​(int len)
      • readLong

        public long readLong​(int len)
      • readBytes

        public byte[] readBytes​(byte[] buff,
                                int offset,
                                int len)
      • writeInt

        public void writeInt​(int value,
                             int len)
      • writeBytes

        public void writeBytes​(byte[] bytes,
                               int offset,
                               int len)
      • writeByte

        public void writeByte​(byte b)
      • flush

        public void flush()