Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Member Functions | Protected Attributes | Static Protected Attributes

PrintWriter Class Reference

#include <PrintWriter.hpp>

Inherits Writer.

Inherited by DOMStringPrintWriter, NullPrintWriter, and XalanOutputStreamPrintWriter.

Collaboration diagram for PrintWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Protected Attributes

Static Protected Attributes


Detailed Description

Definition at line 37 of file PrintWriter.hpp.


Constructor & Destructor Documentation

PrintWriter::PrintWriter ( bool  fAutoFlush = false,
MemoryManager &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.

MemoryManager& PrintWriter::getMemoryManager (  )  [inline]

Definition at line 49 of file PrintWriter.hpp.

virtual void PrintWriter::print ( const XalanDOMString s  )  [pure virtual]
virtual void PrintWriter::print ( bool  b  )  [pure virtual]
virtual void PrintWriter::print ( char  c  )  [pure virtual]
virtual void PrintWriter::print ( const char *  s,
size_t  theLength = npos 
) [pure virtual]
virtual void PrintWriter::print ( const XalanDOMChar *  s,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
) [pure virtual]
virtual void PrintWriter::print ( double  d  )  [pure virtual]
virtual void PrintWriter::print ( int  i  )  [pure virtual]
virtual void PrintWriter::print ( long  l  )  [pure virtual]
virtual void PrintWriter::println ( char  x  )  [pure virtual]
virtual void PrintWriter::println ( const XalanDOMString s  )  [pure virtual]
virtual void PrintWriter::println ( double  x  )  [pure virtual]
virtual void PrintWriter::println ( const XalanDOMChar *  s,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
) [pure virtual]
virtual void PrintWriter::println (  )  [pure virtual]
virtual void PrintWriter::println ( int  x  )  [pure virtual]
virtual void PrintWriter::println ( const char *  s,
size_t  theLength = npos 
) [pure virtual]
virtual void PrintWriter::println ( bool  b  )  [pure virtual]
virtual void PrintWriter::println ( long  x  )  [pure virtual]
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.

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.


Member Data Documentation

const bool PrintWriter::m_fAutoFlush [protected]

Definition at line 164 of file PrintWriter.hpp.

MemoryManager& PrintWriter::m_memoryManager [protected]

Definition at line 166 of file PrintWriter.hpp.

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

Definition at line 171 of file PrintWriter.hpp.

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

Definition at line 173 of file PrintWriter.hpp.

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

Definition at line 169 of file PrintWriter.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