Class HttpChunkedByteSupplier
java.lang.Object
cool.scx.http.x.http1.chunked.HttpChunkedByteSupplier
- All Implemented Interfaces:
cool.scx.bytes.supplier.ByteSupplier
用来解析 HttpChunked 分块传输数据
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionHttpChunkedByteSupplier(cool.scx.bytes.ByteReader dataReader) HttpChunkedByteSupplier(cool.scx.bytes.ByteReader dataReader, long maxLength) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMaxPayload(int chunkLength) cool.scx.bytes.ByteChunkget()
-
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:
getin interfacecool.scx.bytes.supplier.ByteSupplier- Throws:
cool.scx.bytes.exception.ByteSupplierException
-
checkMaxPayload
public void checkMaxPayload(int chunkLength)
-