Class Header


  • public class Header
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      short command
      Command field of the header.
      int dataCount
      Data count field of the header.
      short dataType
      Data type field of the header.
      int parameter1
      Parameter 1 field of the header.
      int parameter2
      Parameter 2 field of the header.
      int payloadSize
      Payload size field of the header.
    • Constructor Summary

      Constructors 
      Constructor Description
      Header()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean read​(java.nio.ByteBuffer headerBuffer)
      Parse CA response header.
      • Methods inherited from class java.lang.Object

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

      • command

        public short command
        Command field of the header.
      • payloadSize

        public int payloadSize
        Payload size field of the header.
      • dataType

        public short dataType
        Data type field of the header.
      • dataCount

        public int dataCount
        Data count field of the header. NOTE: extended (unsigned short -> int)
      • parameter1

        public int parameter1
        Parameter 1 field of the header.
      • parameter2

        public int parameter2
        Parameter 2 field of the header.
    • Constructor Detail

      • Header

        public Header()
    • Method Detail

      • read

        public boolean read​(java.nio.ByteBuffer headerBuffer)
        Parse CA response header.
        Parameters:
        headerBuffer - response header to be parsed, condition: headerBuffer.remaining() >= CA_MESSAGE_HEADER_SIZE
        Returns:
        success token, set true if the response header was successfully parsed.