Apache log4cxx Version 0.10.0
|
InputStream implemented on top of a byte array. More...
Inherits InputStream.
Public Member Functions | |
ByteArrayInputStream (const ByteList &bytes) | |
Creates a ByteArrayInputStream. | |
virtual | ~ByteArrayInputStream () |
virtual void | close () |
Closes this file input stream and releases any system resources associated with the stream. | |
virtual int | read (ByteBuffer &buf) |
Reads a sequence of bytes into the given buffer. |
InputStream implemented on top of a byte array.
ByteArrayInputStream | ( | const ByteList & | bytes | ) |
Creates a ByteArrayInputStream.
bytes | array of bytes to copy into stream. |
virtual ~ByteArrayInputStream | ( | ) | [virtual] |
virtual void close | ( | ) | [virtual] |
Closes this file input stream and releases any system resources associated with the stream.
Implements InputStream.
virtual int read | ( | ByteBuffer & | buf | ) | [virtual] |
Reads a sequence of bytes into the given buffer.
buf | The buffer into which bytes are to be transferred. |
Implements InputStream.