Xalan-C++ API Reference 1.12.0
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.

Protected Attributes

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

Detailed Description

Definition at line 44 of file XalanFormatterWriter.hpp.

Member Typedef Documentation

◆ size_type

Constructor & Destructor Documentation

◆ XalanFormatterWriter()

◆ ~XalanFormatterWriter()

virtual xalanc::XalanFormatterWriter::~XalanFormatterWriter ( )
inlinevirtual

Definition at line 192 of file XalanFormatterWriter.hpp.

Member Function Documentation

◆ decodeUTF16SurrogatePair()

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

◆ flushWriter()

void xalanc::XalanFormatterWriter::flushWriter ( )
inline

Definition at line 215 of file XalanFormatterWriter.hpp.

References m_writer.

◆ formatNumericCharacterReference()

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 m_stringBuffer, and xalanc::NumberToDOMString().

◆ getMemoryManager()

◆ getStream() [1/2]

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

◆ getStream() [2/2]

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

Definition at line 209 of file XalanFormatterWriter.hpp.

References m_writer.

◆ getWriter()

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

Definition at line 197 of file XalanFormatterWriter.hpp.

References m_writer.

◆ isUTF16HighSurrogate()

◆ isUTF16LowSurrogate()

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

◆ throwInvalidCharacterException()

void xalanc::XalanFormatterWriter::throwInvalidCharacterException ( XalanUnicodeChar ch,
MemoryManager & theManager )
inlinestatic

◆ throwInvalidUTF16SurrogateException()

void xalanc::XalanFormatterWriter::throwInvalidUTF16SurrogateException ( XalanDOMChar ch,
XalanDOMChar next,
MemoryManager & theManager )
inlinestatic

◆ throwUnrepresentableCharacterException()

void xalanc::XalanFormatterWriter::throwUnrepresentableCharacterException ( XalanUnicodeChar ch,
MemoryManager & theManager )
inline

Member Data Documentation

◆ m_memoryManager

MemoryManager& xalanc::XalanFormatterWriter::m_memoryManager
protected

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

Definition at line 323 of file XalanFormatterWriter.hpp.

Referenced by getMemoryManager(), and XalanFormatterWriter().

◆ m_newlineString

const XalanDOMChar* xalanc::XalanFormatterWriter::m_newlineString
protected

◆ m_newlineStringLength

size_type xalanc::XalanFormatterWriter::m_newlineStringLength
protected

◆ m_stringBuffer

XalanDOMString xalanc::XalanFormatterWriter::m_stringBuffer
protected

◆ m_writer


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