public interface Stream
Stream
interface is used to represent anything that
can be streamed. Typically this is used to represent a region of
memory that can be read through an InputStream
object.
Representing an object as a stream ensures it can each time the
input stream is acquired it reads from the start of the buffer.Buffer
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
This method is used so that a buffer can be represented as a
stream of bytes.
|
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException