## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# PrintWriter Class Reference

Inheritance diagram for PrintWriter:

[legend]
Collaboration diagram for PrintWriter:

[legend]
List of all members.

## Public Member Functions

- PrintWriter (bool fAutoFlush=false, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR)
    Constructor.
- MemoryManagerType & getMemoryManager ()
- virtual ~PrintWriter ()
- virtual bool checkError () const=0
    Flush the stream, then check the error status.
- virtual void close ()=0
    Close the stream.
- virtual void flush ()=0
    Flush the stream.
- virtual void write (const char *s, size_t theOffset=0, size_t theLength=npos)=0
    Writes a string.
- virtual void write (const XalanDOMChar *s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
    Writes a string.
- virtual void write (XalanDOMChar c)=0
    Writes a character.
- virtual void write (const XalanDOMString &s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
    Writes a string.
- virtual void print (bool b)=0
- virtual void print (char c)=0
- virtual void print (const char *s, size_t theLength=npos)=0
- virtual void print (const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
- virtual void print (double d)=0
- virtual void print (int i)=0
- virtual void print (long l)=0
- virtual void print (const XalanDOMString &s)=0
- virtual void println ()=0
- virtual void println (bool b)=0
- virtual void println (char x)=0
- virtual void println (const char *s, size_t theLength=npos)=0
- virtual void println (const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
- virtual void println (double x)=0
- virtual void println (int x)=0
- virtual void println (long x)=0
- virtual void println (const XalanDOMString &s)=0

## Protected Attributes

- const bool m_fAutoFlush
- MemoryManagerType & m_memoryManager

## Static Protected Attributes

- const XalanDOMChar s_trueString []
- const XalanDOMChar s_falseString []
- const XalanDOMChar s_newlineString []

## Constructor & Destructor Documentation

PrintWriter::PrintWriter | ( | bool | fAutoFlush = false,
|  | MemoryManagerType &theManager | XALAN_DEFAULT_MEMMGR
| ) |

  | Constructor. Parameters:
  fAutoFlush | if true, the output will not be buffered

virtual PrintWriter::~PrintWriter | ( |  | ) | `[virtual]`

## Member Function Documentation

virtual bool PrintWriter::checkError | ( |  | ) | const`[pure virtual]`

| Flush the stream, then check the error status. Returns: true if no errors Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::close | ( |  | ) | `[pure virtual]`

| Close the stream. Implements Writer. Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::flush | ( |  | ) | `[pure virtual]`

| Flush the stream. Implements Writer. Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

MemoryManagerType& PrintWriter::getMemoryManager | ( |  | ) |

virtual void PrintWriter::print | ( | const XalanDOMString & | s | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | long | l | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | int | i | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | double | d | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | const XalanDOMChar * | s,
|  | XalanDOMString::size_type | theLength = XalanDOMString::npos
| ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | const char * | s,
|  | size_t | theLength = npos
| ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | char | c | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::print | ( | bool | b | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | const XalanDOMString & | s | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | long | x | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | int | x | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | double | x | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | const XalanDOMChar * | s,
|  | XalanDOMString::size_type | theLength = XalanDOMString::npos
| ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | const char * | s,
|  | size_t | theLength = npos
| ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | char | x | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( | bool | b | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::println | ( |  | ) | `[pure virtual]`

| Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::write | ( | const XalanDOMString & | s,
|  | XalanDOMString::size_type | theOffset = 0,
|  | XalanDOMString::size_type | theLength = XalanDOMString::npos
| ) | `[pure virtual]`

  | Writes a string. Parameters:
  s | string to write
  theOffset | starting offset in string to begin writing, default 0
  theLength | number of characters to write. If the length is XalanDOMString::npos, then the entire string is printed.
Implements Writer. Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::write | ( | XalanDOMChar | c | ) | `[pure virtual]`

  | Writes a character. Parameters:
  c | character to write
Implements Writer. Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::write | ( | const XalanDOMChar * | s,
|  | XalanDOMString::size_type | theOffset = 0,
|  | XalanDOMString::size_type | theLength = XalanDOMString::npos
| ) | `[pure virtual]`

  | Writes a string. Parameters:
  s | string to write
  theOffset | starting offset in string to begin writing, default 0
  theLength | number of characters to write. If the length is XalanDOMString::npos, then the array is assumed to be null-terminated.
Implements Writer. Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

virtual void PrintWriter::write | ( | const char * | s,
|  | size_t | theOffset = 0,
|  | size_t | theLength = npos
| ) | `[pure virtual]`

  | Writes a string. Parameters:
  s | string to write
  theOffset | starting offset in string to begin writing, default 0
  theLength | number of characters to write. If the length is npos, then the array is assumed to be null-terminated.
Implements Writer. Implemented in DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

## Member Data Documentation

const bool PrintWriter::m_fAutoFlush`[protected]`

MemoryManagerType& PrintWriter::m_memoryManager`[protected]`

const XalanDOMChar PrintWriter::s_falseString[]`[static, protected]`

const XalanDOMChar PrintWriter::s_newlineString[]`[static, protected]`

const XalanDOMChar PrintWriter::s_trueString[]`[static, protected]`

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

- PrintWriter.hpp

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.9 Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.