Xalan-C++ API Reference  1.12.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
xalanc::XalanFormatterWriter Class Reference

#include <xalanc/XMLSupport/XalanFormatterWriter.hpp>

Inheritance diagram for xalanc::XalanFormatterWriter:
[legend]
Collaboration diagram for xalanc::XalanFormatterWriter:
[legend]

Classes

class  CommonRepresentableCharFunctor
 
class  NewLineWriterFunctor
 
class  WhiteSpaceWriterFunctor
 

Public Types

typedef FormatterListener::size_type size_type
 

Public Member Functions

 XalanFormatterWriter (Writer &theWriter, MemoryManager &theMemoryManager)
 
MemoryManager & getMemoryManager ()
 
virtual ~XalanFormatterWriter ()
 
WritergetWriter () const
 
XalanOutputStreamgetStream ()
 
const XalanOutputStreamgetStream () const
 
void flushWriter ()
 
void throwUnrepresentableCharacterException (XalanUnicodeChar ch, MemoryManager &theManager)
 

Static Public Member Functions

static bool isUTF16HighSurrogate (XalanDOMChar theChar)
 
static bool isUTF16LowSurrogate (XalanDOMChar theChar)
 
static XalanUnicodeChar decodeUTF16SurrogatePair (XalanDOMChar theHighSurrogate, XalanDOMChar theLowSurrogate, MemoryManager &theManager)
 
static void throwInvalidCharacterException (XalanUnicodeChar ch, MemoryManager &theManager)
 
static void throwInvalidUTF16SurrogateException (XalanDOMChar ch, XalanDOMChar next, MemoryManager &theManager)
 

Protected Member Functions

const XalanDOMStringformatNumericCharacterReference (XalanUnicodeChar theChar)
 Format a code point as a numeric character reference. More...
 

Protected Attributes

Writerm_writer
 The writer. More...
 
MemoryManager & m_memoryManager
 The MemoryManager instance to use for any dynamically- allocated memory. More...
 
XalanDOMString m_stringBuffer
 
const XalanDOMChar * m_newlineString
 The string of characters that represents the newline. More...
 
size_type m_newlineStringLength
 The length of the the string of characters that represents the newline. More...
 

Detailed Description

Definition at line 44 of file XalanFormatterWriter.hpp.

Member Typedef Documentation

Definition at line 48 of file XalanFormatterWriter.hpp.

Constructor & Destructor Documentation

xalanc::XalanFormatterWriter::XalanFormatterWriter ( Writer theWriter,
MemoryManager &  theMemoryManager 
)
inline
virtual xalanc::XalanFormatterWriter::~XalanFormatterWriter ( )
inlinevirtual

Definition at line 192 of file XalanFormatterWriter.hpp.

Member Function Documentation

static XalanUnicodeChar xalanc::XalanFormatterWriter::decodeUTF16SurrogatePair ( XalanDOMChar  theHighSurrogate,
XalanDOMChar  theLowSurrogate,
MemoryManager &  theManager 
)
inlinestatic

Definition at line 234 of file XalanFormatterWriter.hpp.

void xalanc::XalanFormatterWriter::flushWriter ( )
inline

Definition at line 215 of file XalanFormatterWriter.hpp.

const XalanDOMString& xalanc::XalanFormatterWriter::formatNumericCharacterReference ( XalanUnicodeChar  theChar)
inlineprotected

Format a code point as a numeric character reference.

Parameters
theCharA Unicode code point.

Definition at line 343 of file XalanFormatterWriter.hpp.

References xalanc::XalanDOMString::clear(), xalanc::NumberToDOMString(), and xalanc::XalanDOMString::push_back().

MemoryManager& xalanc::XalanFormatterWriter::getMemoryManager ( )
inline

Definition at line 186 of file XalanFormatterWriter.hpp.

XalanOutputStream* xalanc::XalanFormatterWriter::getStream ( )
inline

Definition at line 203 of file XalanFormatterWriter.hpp.

const XalanOutputStream* xalanc::XalanFormatterWriter::getStream ( ) const
inline

Definition at line 209 of file XalanFormatterWriter.hpp.

Writer* xalanc::XalanFormatterWriter::getWriter ( ) const
inline

Definition at line 197 of file XalanFormatterWriter.hpp.

static bool xalanc::XalanFormatterWriter::isUTF16HighSurrogate ( XalanDOMChar  theChar)
inlinestatic

Definition at line 222 of file XalanFormatterWriter.hpp.

static bool xalanc::XalanFormatterWriter::isUTF16LowSurrogate ( XalanDOMChar  theChar)
inlinestatic

Definition at line 228 of file XalanFormatterWriter.hpp.

static void xalanc::XalanFormatterWriter::throwInvalidCharacterException ( XalanUnicodeChar  ch,
MemoryManager &  theManager 
)
inlinestatic
static void xalanc::XalanFormatterWriter::throwInvalidUTF16SurrogateException ( XalanDOMChar  ch,
XalanDOMChar  next,
MemoryManager &  theManager 
)
inlinestatic
void xalanc::XalanFormatterWriter::throwUnrepresentableCharacterException ( XalanUnicodeChar  ch,
MemoryManager &  theManager 
)
inline

Member Data Documentation

MemoryManager& xalanc::XalanFormatterWriter::m_memoryManager
protected

The MemoryManager instance to use for any dynamically- allocated memory.

Definition at line 323 of file XalanFormatterWriter.hpp.

const XalanDOMChar* xalanc::XalanFormatterWriter::m_newlineString
protected

The string of characters that represents the newline.

Definition at line 330 of file XalanFormatterWriter.hpp.

size_type xalanc::XalanFormatterWriter::m_newlineStringLength
protected

The length of the the string of characters that represents the newline.

Definition at line 335 of file XalanFormatterWriter.hpp.

XalanDOMString xalanc::XalanFormatterWriter::m_stringBuffer
protected

Definition at line 325 of file XalanFormatterWriter.hpp.

Writer& xalanc::XalanFormatterWriter::m_writer
protected

The writer.

Definition at line 317 of file XalanFormatterWriter.hpp.


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