Package com.norconex.commons.lang.io
Interface IInputStreamListener
-
- All Known Implementing Classes:
InputStreamLineListener
public interface IInputStreamListenerListener that is being notified every time a chunk of bytes is processed from a given input stream.
Since 1.13.0, use
InputStreamLineListenerto listen to each line being streamed from text files.Should not be considered thread safe.
- Author:
- Pascal Essiembre
- See Also:
InputStreamConsumer,InputStreamLineListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstreamed(String type, byte[] bytes, int length)Invoked when a chunk of bytes is streamed.
-
-
-
Method Detail
-
streamed
void streamed(String type, byte[] bytes, int length)
Invoked when a chunk of bytes is streamed.- Parameters:
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 read
-
-