Apache log4cxx  Version 0.12.0
log4cxx::helpers::InputStreamReader Class Reference

Class for reading from character streams. More...

#include <inputstreamreader.h>

Inheritance diagram for log4cxx::helpers::InputStreamReader:
log4cxx::helpers::Reader log4cxx::helpers::Object

Public Member Functions

 InputStreamReader (const InputStreamPtr &in)
 Creates an InputStreamReader that uses the default charset. More...
 
 InputStreamReader (const InputStreamPtr &in, const CharsetDecoderPtr &enc)
 Creates an InputStreamReader that uses the given charset decoder. More...
 
 ~InputStreamReader ()
 
virtual void close (Pool &p)
 Closes the stream. More...
 
virtual LogString read (Pool &p)
 
LogString getEncoding () const
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
 
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 

Additional Inherited Members

- Protected Member Functions inherited from log4cxx::helpers::Reader
 Reader ()
 Creates a new character-stream reader. More...
 
virtual ~Reader ()
 

Detailed Description

Class for reading from character streams.

Decorates a byte based InputStream and provides appropriate conversion to characters.

Constructor & Destructor Documentation

◆ InputStreamReader() [1/2]

log4cxx::helpers::InputStreamReader::InputStreamReader ( const InputStreamPtr &  in)

Creates an InputStreamReader that uses the default charset.

Parameters
inThe input stream to decorate.

◆ InputStreamReader() [2/2]

log4cxx::helpers::InputStreamReader::InputStreamReader ( const InputStreamPtr &  in,
const CharsetDecoderPtr &  enc 
)

Creates an InputStreamReader that uses the given charset decoder.

Parameters
inThe input stream to decorate.
encThe charset decoder to use for the conversion.

◆ ~InputStreamReader()

log4cxx::helpers::InputStreamReader::~InputStreamReader ( )

Member Function Documentation

◆ close()

virtual void log4cxx::helpers::InputStreamReader::close ( Pool p)
virtual

Closes the stream.

Parameters
pThe memory pool associated with the reader.

Implements log4cxx::helpers::Reader.

◆ getEncoding()

LogString log4cxx::helpers::InputStreamReader::getEncoding ( ) const
Returns
The name of the character encoding being used by this stream.

◆ read()

virtual LogString log4cxx::helpers::InputStreamReader::read ( Pool p)
virtual
Returns
The complete stream contents as a LogString.
Parameters
pThe memory pool associated with the reader.

Implements log4cxx::helpers::Reader.


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