Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Member Functions | Static Public Attributes | List of all members
Writer Class Reference
Inheritance diagram for Writer:
PrintWriter DOMStringPrintWriter NullPrintWriter XalanOutputStreamPrintWriter

Public Member Functions

 Writer ()
virtual ~Writer ()
virtual void close ()=0
 Close the stream.
virtual void flush ()=0
 Flush the stream.
virtual XalanOutputStreamgetStream ()
 Get the stream associated with the writer...
virtual const XalanOutputStreamgetStream () const
 Get the stream associated with the writer...
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.

Static Public Attributes

static const size_t npos

Constructor & Destructor Documentation

Writer::Writer ( )
virtual Writer::~Writer ( )
virtual

Member Function Documentation

virtual void Writer::close ( )
pure virtual
virtual void Writer::flush ( )
pure virtual
virtual XalanOutputStream* Writer::getStream ( )
virtual

Get the stream associated with the writer...

Reimplemented in XalanOutputStreamPrintWriter.

virtual const XalanOutputStream* Writer::getStream ( ) const
virtual

Get the stream associated with the writer...

Reimplemented in XalanOutputStreamPrintWriter.

virtual void Writer::write ( const char *  s,
size_t  theOffset = 0,
size_t  theLength = npos 
)
pure virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is npos, then the array is assumed to be null-terminated.

Implemented in XalanOutputStreamPrintWriter, PrintWriter, DOMStringPrintWriter, and NullPrintWriter.

virtual void Writer::write ( const XalanDOMChar *  s,
XalanDOMString::size_type  theOffset = 0,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
pure virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is XalanDOMString::npos, then the array is assumed to be null-terminated.

Implemented in XalanOutputStreamPrintWriter, PrintWriter, DOMStringPrintWriter, and NullPrintWriter.

virtual void Writer::write ( XalanDOMChar  c)
pure virtual

Writes a character.

Parameters
ccharacter to write

Implemented in XalanOutputStreamPrintWriter, PrintWriter, DOMStringPrintWriter, and NullPrintWriter.

virtual void Writer::write ( const XalanDOMString s,
XalanDOMString::size_type  theOffset = 0,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
pure virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is XalanDOMString::npos, then the entire string is printed.

Implemented in XalanOutputStreamPrintWriter, PrintWriter, DOMStringPrintWriter, and NullPrintWriter.

Member Data Documentation

const size_t Writer::npos
static

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.

dot

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

Apache Logo