Class ParamsContentParser


  • public class ParamsContentParser
    extends ContentParser

    Parser for the PARAMS frame body.

     struct small_name_small_value_params_body {
         ubyte nameLength;
         ubyte valueLength;
         ubyte[] nameBytes;
         ubyte[] valueBytes;
     }
    
     struct small_name_large_value_params_body {
         ubyte nameLength;
         uint valueLength;
         ubyte[] nameBytes;
         ubyte[] valueBytes;
     }
    
     struct large_name_small_value_params_body {
         uint nameLength;
         ubyte valueLength;
         ubyte[] nameBytes;
         ubyte[] valueBytes;
     }
    
     struct large_name_large_value_params_body {
         uint nameLength;
         uint valueLength;
         ubyte[] nameBytes;
         ubyte[] valueBytes;
     }
     
    • Field Detail

      • LOG

        private static final Logger LOG
      • cursor

        private int cursor
      • length

        private int length
      • nameLength

        private int nameLength
      • valueLength

        private int valueLength
      • nameBytes

        private byte[] nameBytes
      • valueBytes

        private byte[] valueBytes
    • Method Detail

      • onParam

        protected void onParam​(java.lang.String name,
                               java.lang.String value)
      • onParams

        protected void onParams()
      • isLargeLength

        private boolean isLargeLength​(java.nio.ByteBuffer buffer)
      • partialReset

        private void partialReset()
      • reset

        private void reset()