public interface IInputStreamListener
Listener that is being notified every time a chunk of bytes is processed from a given input stream.
Since 1.13.0, use InputStreamLineListener
to listen to each line
being streamed from text files.
Should not be considered thread safe.
InputStreamConsumer
,
InputStreamLineListener
Modifier and Type | Method and Description |
---|---|
void |
streamed(String type,
byte[] bytes,
int length)
Invoked when a chunk of bytes is streamed.
|
void streamed(String type, byte[] bytes, int length)
type
- type of what is being streamed, as defined by the class
using this listenerbytes
- chunk of bytes streamedlength
- length of valid bytes to read or -1 if no more bytes to
readCopyright © 2008–2021 Norconex Inc.. All rights reserved.