Apache Log4cxx  Version 1.3.0
Loading...
Searching...
No Matches
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.
 
 InputStreamReader (const InputStreamPtr &in, const CharsetDecoderPtr &enc)
 Creates an InputStreamReader that uses the given charset decoder.
 
 ~InputStreamReader ()
 
void close (Pool &p) override
 Closes the stream.
 
LogString read (Pool &p) override
 
LogString getEncoding () const
 
virtual void close (Pool &p)=0
 Closes the stream.
 
virtual LogString read (Pool &p)=0
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from log4cxx::helpers::Reader
 Reader ()
 Creates a new character-stream reader.
 
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()

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

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()

LogString log4cxx::helpers::InputStreamReader::read ( Pool p)
overridevirtual
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: