Package com.norconex.commons.lang.io
Interface InputStreamListener
- All Known Subinterfaces:
IInputStreamListener
- All Known Implementing Classes:
InputStreamLineListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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.
- See Also:
-
Method Summary
-
Method Details
-
streamed
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
-