Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
XalanFormatterWriter Class Reference

#include <XalanFormatterWriter.hpp>

Inherited by XalanOtherEncodingWriter< Predicate, ConstantsType >, XalanUTF16Writer, and XalanUTF8Writer.

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

◆ size_type

Definition at line 48 of file XalanFormatterWriter.hpp.

Constructor & Destructor Documentation

◆ XalanFormatterWriter()

XalanFormatterWriter::XalanFormatterWriter ( Writer theWriter,
MemoryManager &  theMemoryManager 
)
inline

Definition at line 159 of file XalanFormatterWriter.hpp.

◆ ~XalanFormatterWriter()

virtual XalanFormatterWriter::~XalanFormatterWriter ( )
inlinevirtual

Definition at line 192 of file XalanFormatterWriter.hpp.

Member Function Documentation

◆ decodeUTF16SurrogatePair()

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

Definition at line 234 of file XalanFormatterWriter.hpp.

◆ flushWriter()

void XalanFormatterWriter::flushWriter ( )
inline

Definition at line 215 of file XalanFormatterWriter.hpp.

◆ formatNumericCharacterReference()

const XalanDOMString& 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.

◆ getMemoryManager()

MemoryManager& XalanFormatterWriter::getMemoryManager ( )
inline

Definition at line 186 of file XalanFormatterWriter.hpp.

◆ getStream() [1/2]

XalanOutputStream* XalanFormatterWriter::getStream ( )
inline

Definition at line 203 of file XalanFormatterWriter.hpp.

◆ getStream() [2/2]

const XalanOutputStream* XalanFormatterWriter::getStream ( ) const
inline

Definition at line 209 of file XalanFormatterWriter.hpp.

◆ getWriter()

Writer* XalanFormatterWriter::getWriter ( ) const
inline

Definition at line 197 of file XalanFormatterWriter.hpp.

◆ isUTF16HighSurrogate()

static bool XalanFormatterWriter::isUTF16HighSurrogate ( XalanDOMChar  theChar)
inlinestatic

Definition at line 222 of file XalanFormatterWriter.hpp.

◆ isUTF16LowSurrogate()

static bool XalanFormatterWriter::isUTF16LowSurrogate ( XalanDOMChar  theChar)
inlinestatic

Definition at line 228 of file XalanFormatterWriter.hpp.

◆ throwInvalidCharacterException()

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

Definition at line 250 of file XalanFormatterWriter.hpp.

◆ throwInvalidUTF16SurrogateException()

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

Definition at line 284 of file XalanFormatterWriter.hpp.

◆ throwUnrepresentableCharacterException()

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

Definition at line 268 of file XalanFormatterWriter.hpp.

Member Data Documentation

◆ m_memoryManager

MemoryManager& XalanFormatterWriter::m_memoryManager
protected

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

Definition at line 323 of file XalanFormatterWriter.hpp.

◆ m_newlineString

const XalanDOMChar* XalanFormatterWriter::m_newlineString
protected

The string of characters that represents the newline.

Definition at line 330 of file XalanFormatterWriter.hpp.

◆ m_newlineStringLength

size_type XalanFormatterWriter::m_newlineStringLength
protected

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

Definition at line 335 of file XalanFormatterWriter.hpp.

◆ m_stringBuffer

XalanDOMString XalanFormatterWriter::m_stringBuffer
protected

Definition at line 325 of file XalanFormatterWriter.hpp.

◆ m_writer

Writer& 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:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo