Class JilterServerPacketUtil


  • public class JilterServerPacketUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getZeroTerminatedString​(java.nio.ByteBuffer dataBuffer)  
      static java.lang.String[] getZeroTerminatedStringArray​(java.nio.ByteBuffer dataBuffer)  
      static void sendAddHeaderPacket​(java.nio.channels.WritableByteChannel writeChannel, java.lang.String header, java.lang.String value)  
      static void sendAddRcptPacket​(java.nio.channels.WritableByteChannel writeChannel, java.lang.String recipient)  
      static void sendChgHeaderPacket​(java.nio.channels.WritableByteChannel writeChannel, int index, java.lang.String header, java.lang.String value)  
      static void sendDelRcptPacket​(java.nio.channels.WritableByteChannel writeChannel, java.lang.String recipient)  
      static void sendPacket​(java.nio.channels.WritableByteChannel writeChannel, int command, java.nio.ByteBuffer dataBuffer)  
      static void sendProgressPacket​(java.nio.channels.WritableByteChannel writeChannel)  
      static void sendReplBodyPacket​(java.nio.channels.WritableByteChannel writeChannel, java.nio.ByteBuffer dataBuffer)  
      static void sendReplyCodePacket​(java.nio.channels.WritableByteChannel writeChannel, java.lang.String reply)  
      static void writeZeroTerminatedString​(java.nio.ByteBuffer dataBuffer, java.lang.String string)  
      static int zeroTerminatedStringLength​(java.lang.String string)  
      • Methods inherited from class java.lang.Object

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

      • sendPacket

        public static void sendPacket​(java.nio.channels.WritableByteChannel writeChannel,
                                      int command,
                                      java.nio.ByteBuffer dataBuffer)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • zeroTerminatedStringLength

        public static int zeroTerminatedStringLength​(java.lang.String string)
      • writeZeroTerminatedString

        public static void writeZeroTerminatedString​(java.nio.ByteBuffer dataBuffer,
                                                     java.lang.String string)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • sendAddRcptPacket

        public static void sendAddRcptPacket​(java.nio.channels.WritableByteChannel writeChannel,
                                             java.lang.String recipient)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • sendDelRcptPacket

        public static void sendDelRcptPacket​(java.nio.channels.WritableByteChannel writeChannel,
                                             java.lang.String recipient)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • sendAddHeaderPacket

        public static void sendAddHeaderPacket​(java.nio.channels.WritableByteChannel writeChannel,
                                               java.lang.String header,
                                               java.lang.String value)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • sendChgHeaderPacket

        public static void sendChgHeaderPacket​(java.nio.channels.WritableByteChannel writeChannel,
                                               int index,
                                               java.lang.String header,
                                               java.lang.String value)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • sendReplBodyPacket

        public static void sendReplBodyPacket​(java.nio.channels.WritableByteChannel writeChannel,
                                              java.nio.ByteBuffer dataBuffer)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • sendProgressPacket

        public static void sendProgressPacket​(java.nio.channels.WritableByteChannel writeChannel)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • sendReplyCodePacket

        public static void sendReplyCodePacket​(java.nio.channels.WritableByteChannel writeChannel,
                                               java.lang.String reply)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getZeroTerminatedString

        public static java.lang.String getZeroTerminatedString​(java.nio.ByteBuffer dataBuffer)
      • getZeroTerminatedStringArray

        public static java.lang.String[] getZeroTerminatedStringArray​(java.nio.ByteBuffer dataBuffer)