Module jls.io.streams.ChunkedStreamHandler
This class allows to buffer a stream and to call a sub handler depending on specified limit or pattern.
Class ChunkedStreamHandler
ChunkedStreamHandler:new (handler[, pattern[, plain[, limit]]]) | Creates a buffered StreamHandler using the pattern and/or limit. |
Class ChunkedStreamHandler
A ChunkedStreamHandler class.
This class allows to buffer a stream and to call a sub handler depending on specified limit or pattern.
- ChunkedStreamHandler:new (handler[, pattern[, plain[, limit]]])
-
Creates a buffered StreamHandler using the pattern and/or limit.
The data will be pass to the wrapped handler depending on the limit and the pattern.
Parameters:
- handler StreamHandler the handler to wrap
- pattern string the pattern to use to split the buffered data to the wrapped handler (optional)
- plain boolean true to use the pattern as a plain string (optional)
- limit number the max size to buffer waiting for a pattern (optional)