Apache Log4cxx  Version 1.3.0
Loading...
Searching...
No Matches
log4cxx::helpers::InputStream Class Referenceabstract

Abstract class for reading from character streams. More...

#include <inputstream.h>

Inheritance diagram for log4cxx::helpers::InputStream:
log4cxx::helpers::Object log4cxx::helpers::ByteArrayInputStream log4cxx::helpers::FileInputStream

Public Member Functions

virtual int read (ByteBuffer &dst)=0
 Reads a sequence of bytes into the given buffer.
 
virtual void close ()=0
 Closes this input stream and releases any system resources associated with the stream.
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
 
virtual const helpers::ClassgetClass () const =0
 
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 

Protected Member Functions

 InputStream ()
 
virtual ~InputStream ()
 

Detailed Description

Abstract class for reading from character streams.

Constructor & Destructor Documentation

◆ InputStream()

log4cxx::helpers::InputStream::InputStream ( )
protected

◆ ~InputStream()

virtual log4cxx::helpers::InputStream::~InputStream ( )
protectedvirtual

Member Function Documentation

◆ close()

virtual void log4cxx::helpers::InputStream::close ( )
pure virtual

Closes this input stream and releases any system resources associated with the stream.

Implemented in log4cxx::helpers::ByteArrayInputStream, and log4cxx::helpers::FileInputStream.

◆ read()

virtual int log4cxx::helpers::InputStream::read ( ByteBuffer dst)
pure virtual

Reads a sequence of bytes into the given buffer.

Parameters
dstThe buffer into which bytes are to be transferred.
Returns
the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.

Implemented in log4cxx::helpers::ByteArrayInputStream, and log4cxx::helpers::FileInputStream.


The documentation for this class was generated from the following file: