Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Member Functions | Static Public Attributes | List of all members
Writer Class Referenceabstract

#include <Writer.hpp>

Inherited by PrintWriter.

Public Member Functions

 Writer ()
 
virtual ~Writer ()
 
virtual void close ()=0
 Close the stream. More...
 
virtual void flush ()=0
 Flush the stream. More...
 
virtual XalanOutputStream * getStream ()
 Get the stream associated with the writer... More...
 
virtual const XalanOutputStream * getStream () const
 Get the stream associated with the writer... More...
 
virtual void write (const char *s, size_t theOffset=0, size_t theLength=npos)=0
 Writes a string. More...
 
virtual void write (const XalanDOMChar *s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
 Writes a string. More...
 
virtual void write (XalanDOMChar c)=0
 Writes a character. More...
 
virtual void write (const XalanDOMString &s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)=0
 Writes a string. More...
 

Static Public Attributes

static const size_t npos
 

Detailed Description

Definition at line 44 of file Writer.hpp.

Constructor & Destructor Documentation

◆ Writer()

Writer::Writer ( )

◆ ~Writer()

virtual Writer::~Writer ( )
virtual

Member Function Documentation

◆ close()

virtual void Writer::close ( )
pure virtual

◆ flush()

virtual void Writer::flush ( )
pure virtual

◆ getStream() [1/2]

virtual XalanOutputStream* Writer::getStream ( )
virtual

Get the stream associated with the writer...

Reimplemented in XalanOutputStreamPrintWriter.

◆ getStream() [2/2]

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

Get the stream associated with the writer...

Reimplemented in XalanOutputStreamPrintWriter.

◆ write() [1/4]

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 PrintWriter, XalanOutputStreamPrintWriter, DOMStringPrintWriter, and NullPrintWriter.

◆ write() [2/4]

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 PrintWriter, XalanOutputStreamPrintWriter, DOMStringPrintWriter, and NullPrintWriter.

◆ write() [3/4]

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 PrintWriter, XalanOutputStreamPrintWriter, DOMStringPrintWriter, and NullPrintWriter.

◆ write() [4/4]

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

Writes a character.

Parameters
ccharacter to write

Implemented in PrintWriter, XalanOutputStreamPrintWriter, DOMStringPrintWriter, and NullPrintWriter.

Member Data Documentation

◆ npos

const size_t Writer::npos
static

Definition at line 83 of file Writer.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