Class Encoder


  • public final class Encoder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Encoder​(int maxHeaderTableSize)
      Creates a new encoder.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void encodeHeader​(java.io.OutputStream out, java.lang.String name, java.lang.String value, boolean sensitive)
      Encode the header field into the header block.
      int getMaxHeaderTableSize()
      Return the maximum table size.
      void setMaxHeaderTableSize​(java.io.OutputStream out, int maxHeaderTableSize)
      Set the maximum table size.
      • Methods inherited from class java.lang.Object

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

      • Encoder

        public Encoder​(int maxHeaderTableSize)
        Creates a new encoder.
    • Method Detail

      • encodeHeader

        public void encodeHeader​(java.io.OutputStream out,
                                 java.lang.String name,
                                 java.lang.String value,
                                 boolean sensitive)
                          throws java.io.IOException
        Encode the header field into the header block.
        Throws:
        java.io.IOException
      • setMaxHeaderTableSize

        public void setMaxHeaderTableSize​(java.io.OutputStream out,
                                          int maxHeaderTableSize)
                                   throws java.io.IOException
        Set the maximum table size.
        Throws:
        java.io.IOException
      • getMaxHeaderTableSize

        public int getMaxHeaderTableSize()
        Return the maximum table size.