Xalan-C++ API Reference 1.12.0
xalanc::XalanUTF8Writer Class Reference

#include <xalanc/XMLSupport/XalanUTF8Writer.hpp>

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

Public Types

typedef char value_type
Public Types inherited from xalanc::XalanFormatterWriter
typedef FormatterListener::size_type size_type

Public Member Functions

 XalanUTF8Writer (Writer &writer, MemoryManager &theMemoryManager)
virtual ~XalanUTF8Writer ()
void outputNewline ()
 Output a line break.
size_type writeCDATAChar (const XalanDOMChar chars[], size_type start, size_type length, bool &)
void writeNameChar (const XalanDOMChar *data, size_type theLength)
 Writes name characters.
void writePIChars (const XalanDOMChar *data, size_type theLength)
 Writes PI characters.
void writeCommentChars (const XalanDOMChar *data, size_type theLength)
 Writes comment characters.
void safeWriteContent (const XalanDOMChar *theChars, size_type theLength)
void write (const value_type *theChars, size_type theLength)
void write (const XalanDOMChar *theChars)
void write (const XalanDOMString &theChars)
void write (value_type theChar)
void write (const XalanDOMChar *theChars, size_type theLength)
size_type write (const XalanDOMChar chars[], size_type start, size_type length)
void writeSafe (const XalanDOMChar *theChars, size_type theLength)
void write (const value_type *theChars)
void flushWriter ()
void flushBuffer ()
Public Member Functions inherited from xalanc::XalanFormatterWriter
 XalanFormatterWriter (Writer &theWriter, MemoryManager &theMemoryManager)
MemoryManager & getMemoryManager ()
virtual ~XalanFormatterWriter ()
WritergetWriter () const
XalanOutputStreamgetStream ()
const XalanOutputStreamgetStream () const
void flushWriter ()
void throwUnrepresentableCharacterException (XalanUnicodeChar ch, MemoryManager &theManager)

Additional Inherited Members

Static Public Member Functions inherited from xalanc::XalanFormatterWriter
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 inherited from xalanc::XalanFormatterWriter
const XalanDOMStringformatNumericCharacterReference (XalanUnicodeChar theChar)
 Format a code point as a numeric character reference.
Protected Attributes inherited from xalanc::XalanFormatterWriter
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 110 of file XalanUTF8Writer.hpp.

Member Typedef Documentation

◆ value_type

Definition at line 114 of file XalanUTF8Writer.hpp.

Constructor & Destructor Documentation

◆ XalanUTF8Writer()

xalanc::XalanUTF8Writer::XalanUTF8Writer ( Writer & writer,
MemoryManager & theMemoryManager )

◆ ~XalanUTF8Writer()

virtual xalanc::XalanUTF8Writer::~XalanUTF8Writer ( )
inlinevirtual

Definition at line 122 of file XalanUTF8Writer.hpp.

Member Function Documentation

◆ flushBuffer()

void xalanc::XalanUTF8Writer::flushBuffer ( )
inline

Definition at line 375 of file XalanUTF8Writer.hpp.

References xalanc::XalanFormatterWriter::m_writer.

Referenced by write(), and write().

◆ flushWriter()

void xalanc::XalanUTF8Writer::flushWriter ( )
inline

Definition at line 369 of file XalanUTF8Writer.hpp.

References xalanc::XalanFormatterWriter::m_writer.

◆ outputNewline()

void xalanc::XalanUTF8Writer::outputNewline ( )
inline

◆ safeWriteContent()

void xalanc::XalanUTF8Writer::safeWriteContent ( const XalanDOMChar * theChars,
size_type theLength )
inline

Definition at line 189 of file XalanUTF8Writer.hpp.

References write().

◆ write() [1/7]

void xalanc::XalanUTF8Writer::write ( const value_type * theChars)
inline

Definition at line 363 of file XalanUTF8Writer.hpp.

References xalanc::XalanDOMString::length(), and write().

◆ write() [2/7]

void xalanc::XalanUTF8Writer::write ( const value_type * theChars,
size_type theLength )
inline

◆ write() [3/7]

void xalanc::XalanUTF8Writer::write ( const XalanDOMChar * theChars)
inline

Definition at line 236 of file XalanUTF8Writer.hpp.

References xalanc::XalanDOMString::length(), and write().

◆ write() [4/7]

◆ write() [5/7]

◆ write() [6/7]

void xalanc::XalanUTF8Writer::write ( const XalanDOMString & theChars)
inline

◆ write() [7/7]

void xalanc::XalanUTF8Writer::write ( value_type theChar)
inline

Definition at line 248 of file XalanUTF8Writer.hpp.

References flushBuffer().

◆ writeCDATAChar()

size_type xalanc::XalanUTF8Writer::writeCDATAChar ( const XalanDOMChar chars[],
size_type start,
size_type length,
bool &  )
inline

Definition at line 141 of file XalanUTF8Writer.hpp.

References xalanc::length(), and write().

◆ writeCommentChars()

void xalanc::XalanUTF8Writer::writeCommentChars ( const XalanDOMChar * data,
size_type theLength )
inline

Writes comment characters.

If characters that are not representable are encountered, an exception is thrown.

Definition at line 181 of file XalanUTF8Writer.hpp.

References write().

◆ writeNameChar()

void xalanc::XalanUTF8Writer::writeNameChar ( const XalanDOMChar * data,
size_type theLength )
inline

Writes name characters.

If characters that are not representable are encountered, an exception is thrown.

Definition at line 157 of file XalanUTF8Writer.hpp.

References write().

◆ writePIChars()

void xalanc::XalanUTF8Writer::writePIChars ( const XalanDOMChar * data,
size_type theLength )
inline

Writes PI characters.

If characters that are not representable are encountered, an exception is thrown.

Definition at line 169 of file XalanUTF8Writer.hpp.

References write().

◆ writeSafe()


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