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

Definition at line 48 of file XalanFormatterWriter.hpp.

Constructor & Destructor Documentation

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

Definition at line 159 of file XalanFormatterWriter.hpp.

virtual XalanFormatterWriter::~XalanFormatterWriter ( )
inlinevirtual

Definition at line 192 of file XalanFormatterWriter.hpp.

Member Function Documentation

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

Definition at line 234 of file XalanFormatterWriter.hpp.

void XalanFormatterWriter::flushWriter ( )
inline

Definition at line 215 of file XalanFormatterWriter.hpp.

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.

MemoryManager& XalanFormatterWriter::getMemoryManager ( )
inline

Definition at line 186 of file XalanFormatterWriter.hpp.

XalanOutputStream* XalanFormatterWriter::getStream ( )
inline

Definition at line 203 of file XalanFormatterWriter.hpp.

const XalanOutputStream* XalanFormatterWriter::getStream ( ) const
inline

Definition at line 209 of file XalanFormatterWriter.hpp.

Writer* XalanFormatterWriter::getWriter ( ) const
inline

Definition at line 197 of file XalanFormatterWriter.hpp.

static bool XalanFormatterWriter::isUTF16HighSurrogate ( XalanDOMChar  theChar)
inlinestatic

Definition at line 222 of file XalanFormatterWriter.hpp.

static bool XalanFormatterWriter::isUTF16LowSurrogate ( XalanDOMChar  theChar)
inlinestatic

Definition at line 228 of file XalanFormatterWriter.hpp.

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

Definition at line 250 of file XalanFormatterWriter.hpp.

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

Definition at line 284 of file XalanFormatterWriter.hpp.

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

Definition at line 268 of file XalanFormatterWriter.hpp.

Member Data Documentation

MemoryManager& XalanFormatterWriter::m_memoryManager
protected

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

Definition at line 323 of file XalanFormatterWriter.hpp.

const XalanDOMChar* XalanFormatterWriter::m_newlineString
protected

The string of characters that represents the newline.

Definition at line 330 of file XalanFormatterWriter.hpp.

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.

XalanDOMString XalanFormatterWriter::m_stringBuffer
protected

Definition at line 325 of file XalanFormatterWriter.hpp.

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