Interface StreamDecoder
- All Superinterfaces:
StreamDecoder
An interface for objects that apply HTTP content decoding to incoming
HttpData
.
Implement this interface to use content decoding schemes not built-in to the JDK.-
Method Summary
-
Method Details
-
decode
- Specified by:
decode
in interfaceStreamDecoder
- Throws:
ContentTooLargeException
- if the total length of the decodedHttpData
exceedsmaxLength()
.
-
finish
HttpData finish()Closes the decoder and returns any decoded data that may be left over.- Specified by:
finish
in interfaceStreamDecoder
- Throws:
ContentTooLargeException
- if the total length of the decodedHttpData
exceedsmaxLength()
.
-
maxLength
Returns the maximum allowed length of the content decoded.0
means unlimited.- Specified by:
maxLength
in interfaceStreamDecoder
-