Base Framework
|
Filter input stream. More...
#include <base/io/FilterInputStream.h>
Inherits Object, and InputStream.
Inherited by BufferedInputStream, FormatInputStream, and PrimitiveInputStream.
Public Member Functions | |
FilterInputStream (InputStream &in) | |
unsigned int | available () const |
void | close () |
unsigned int | read (uint8 *buffer, unsigned int size, bool nonblocking=false) |
unsigned int | skip (unsigned int count) |
void | wait () const |
bool | wait (unsigned int timeout) const |
![]() | |
virtual | ~Stream () noexcept(false) |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Protected Attributes | |
InputStream & | in |
Filter input stream.
A FilterInputStream redirects requests to an ordinary InputStream possibly transforming data and providing additional functionality in the process. A FilterInputStream is itself an InputStream. MT-Safe implementation if used with MT-safe input stream.
|
explicit |
Initializes the filter input stream.
in | Input stream to be filtered. |
|
virtual |
Returns the number of bytes that can be read or skipped over without blocking.
Implements InputStream.
Reimplemented in FormatInputStream.
|
virtual |
Closes the input stream and releases any system resources associated with the stream.
Implements Stream.
|
virtual |
Fills the specified buffer with bytes from the stream. In blocking mode the method does not return until all bytes have been read. In non-blocking mode the total bytes read may be any number below or equal to the requested number of bytes. Attempting to read beyond the end of a stream in blocking mode results in an EndOfFile exception.
buffer | The buffer to receive the bytes. |
size | The size of the buffer. |
nonblocking | Specifies that the method may not block. The default is false. |
Implements InputStream.
Reimplemented in FormatInputStream.
|
virtual |
Skips a specified number of bytes. Blocks if asked to skip more bytes than available.
count | The number of bytes to skip. |
Implements InputStream.
|
virtual |
Blocking wait for input to become available.
Implements InputStream.
|
virtual |
Blocking wait for input to become available.
timeout | The timeout periode in microseconds. |
Implements InputStream.
|
protected |
Input stream to be filtered.