Exemplo n.º 1
0
 /** Creates a new instance with the specified parameters. */
 public SpdyFrameEncoder(int version, int compressionLevel, int windowBits, int memLevel) {
   if (version < SpdyConstants.SPDY_MIN_VERSION || version > SpdyConstants.SPDY_MAX_VERSION) {
     throw new IllegalArgumentException("unknown version: " + version);
   }
   this.version = version;
   headerBlockCompressor =
       SpdyHeaderBlockCompressor.newInstance(version, compressionLevel, windowBits, memLevel);
 }