Class HttpChunkedByteSupplier

java.lang.Object
cool.scx.http.x.http1.chunked.HttpChunkedByteSupplier
All Implemented Interfaces:
cool.scx.bytes.supplier.ByteSupplier

public class HttpChunkedByteSupplier extends Object implements cool.scx.bytes.supplier.ByteSupplier
用来解析 HttpChunked 分块传输数据
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • HttpChunkedByteSupplier

      public HttpChunkedByteSupplier(cool.scx.bytes.ByteReader dataReader)
    • HttpChunkedByteSupplier

      public HttpChunkedByteSupplier(cool.scx.bytes.ByteReader dataReader, long maxLength)
  • Method Details

    • get

      public cool.scx.bytes.ByteChunk get() throws cool.scx.bytes.exception.ByteSupplierException
      Specified by:
      get in interface cool.scx.bytes.supplier.ByteSupplier
      Throws:
      cool.scx.bytes.exception.ByteSupplierException
    • checkMaxPayload

      public void checkMaxPayload(int chunkLength)