Apache log4cxx  Version 0.10.0
InputStreamReader Class Reference

Class for reading from character streams. More...

Inherits Reader.

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 ()
 
virtual void close (Pool &p)
 Closes the stream.
 
virtual LogString read (Pool &p)
 
LogString getEncoding () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static const helpers::ClassgetStaticClass ()
 
static const
log4cxx::helpers::ClassRegistration
registerClass ()
 
- Protected Member Functions inherited from Reader
 Reader ()
 Creates a new character-stream reader.
 
virtual ~Reader ()
 
- Protected Attributes inherited from ObjectImpl
unsigned int volatile ref
 

Detailed Description

Class for reading from character streams.

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

Constructor & Destructor Documentation

InputStreamReader ( const InputStreamPtr &  in)

Creates an InputStreamReader that uses the default charset.

Parameters
inThe input stream to decorate.
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.

Member Function Documentation

virtual void close ( Pool p)
virtual

Closes the stream.

Parameters
pThe memory pool associated with the reader.

Implements Reader.

LogString getEncoding ( ) const
Returns
The name of the character encoding being used by this stream.
virtual LogString read ( Pool p)
virtual
Returns
The complete stream contents as a LogString.
Parameters
pThe memory pool associated with the reader.

Implements Reader.


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