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

#include <xalanc/XSLT/XSLTResultTarget.hpp>

Public Types

typedef std::ostream StreamType
typedef std::FILE FILE

Public Member Functions

 XSLTResultTarget (MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 XSLTResultTarget (const XalanDOMString &fileName, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a file name.
 XSLTResultTarget (const XalanDOMChar *fileName, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a file name.
 XSLTResultTarget (const char *fileName, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a file name.
 XSLTResultTarget (StreamType *theStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a stream.
 XSLTResultTarget (StreamType &theStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a stream.
 XSLTResultTarget (Writer *characterStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a character stream.
 XSLTResultTarget (FILE *characterStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a stream.
 XSLTResultTarget (FormatterListener &flistener, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a FormatterListener.
 XSLTResultTarget (const XSLTResultTarget &other, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 ~XSLTResultTarget ()
void setFileName (const char *fileName)
 Set the file name where the results will be written.
void setFileName (const XalanDOMString &fileName)
 Set the file name where the results will be written.
const XalanDOMString & getFileName () const
 Get the file name where the results will be written to.
void setByteStream (StreamType *byteStream)
 Set the byte stream for this output target.
StreamType * getByteStream () const
 Get the byte stream for this output target.
void setEncoding (const XalanDOMChar *encoding)
 Set the character encoding, if known.
void setEncoding (const XalanDOMString &encoding)
 Set the character encoding, if known.
const XalanDOMString & getEncoding () const
 Get the character encoding in use.
void setCharacterStream (Writer *characterStream)
 Set the character stream for this output target.
Writer * getCharacterStream () const
 Get the character stream for this output target.
FILE * getStream () const
 Get the stream for this output target.
void setStream (FILE *theStream)
 Set the stream for this output target.
void setFormatterListener (FormatterListener *handler)
 Set a FormatterListener to process the result tree events.
FormatterListener * getFormatterListener () const
 Get the FormatterListener that will process the result tree events.

Detailed Description

Definition at line 45 of file XSLTResultTarget.hpp.

Member Typedef Documentation

◆ FILE

typedef std::FILE xalanc::XSLTResultTarget::FILE

Definition at line 51 of file XSLTResultTarget.hpp.

◆ StreamType

Definition at line 49 of file XSLTResultTarget.hpp.

Constructor & Destructor Documentation

◆ XSLTResultTarget() [1/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
explicit

◆ XSLTResultTarget() [2/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( const XalanDOMString & fileName,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a file name.

Parameters
fileNamevalid system file name

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [3/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( const XalanDOMChar * fileName,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a file name.

Parameters
fileNamevalid system file name

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [4/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( const char * fileName,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a file name.

Parameters
fileNamevalid system file name

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [5/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( StreamType * theStream,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a stream.

Parameters
byteStreama pointer to a std ostream for the output

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [6/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( StreamType & theStream,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a stream.

Parameters
byteStreama reference to a std ostream for the output

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [7/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( Writer * characterStream,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a character stream.

Parameters
characterStreampointer to character stream where the results will be written

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [8/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( FILE * characterStream,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a stream.

Parameters
characterStreampointer to character stream where the results will be written

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [9/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( FormatterListener & flistener,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

Create a new output target with a FormatterListener.

Parameters
flistenerA FormatterListener instance for result tree events.

References XALAN_DEFAULT_CONSTRUCTOR_MEMMGR.

◆ XSLTResultTarget() [10/10]

xalanc::XSLTResultTarget::XSLTResultTarget ( const XSLTResultTarget & other,
MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR )

◆ ~XSLTResultTarget()

xalanc::XSLTResultTarget::~XSLTResultTarget ( )

Member Function Documentation

◆ getByteStream()

StreamType * xalanc::XSLTResultTarget::getByteStream ( ) const
inline

Get the byte stream for this output target.

Returns
pointer to byte stream, or null if none was supplied.

Definition at line 185 of file XSLTResultTarget.hpp.

◆ getCharacterStream()

Writer * xalanc::XSLTResultTarget::getCharacterStream ( ) const
inline

Get the character stream for this output target.

Returns
pointer to character stream, or null if none was supplied.

Definition at line 248 of file XSLTResultTarget.hpp.

◆ getEncoding()

const XalanDOMString & xalanc::XSLTResultTarget::getEncoding ( ) const
inline

Get the character encoding in use.

Returns
encoding string, or empty string if none was supplied.

Definition at line 225 of file XSLTResultTarget.hpp.

◆ getFileName()

const XalanDOMString & xalanc::XSLTResultTarget::getFileName ( ) const
inline

Get the file name where the results will be written to.

Returns
file name string

Definition at line 162 of file XSLTResultTarget.hpp.

◆ getFormatterListener()

FormatterListener * xalanc::XSLTResultTarget::getFormatterListener ( ) const
inline

Get the FormatterListener that will process the result tree events.

Returns
pointer to new listener

Definition at line 292 of file XSLTResultTarget.hpp.

◆ getStream()

FILE * xalanc::XSLTResultTarget::getStream ( ) const
inline

Get the stream for this output target.

Returns
pointer to stream, or null if none was supplied.

Definition at line 259 of file XSLTResultTarget.hpp.

◆ setByteStream()

void xalanc::XSLTResultTarget::setByteStream ( StreamType * byteStream)
inline

Set the byte stream for this output target.

Parameters
byteStreampointer to byte stream that will contain the result document

Definition at line 174 of file XSLTResultTarget.hpp.

◆ setCharacterStream()

void xalanc::XSLTResultTarget::setCharacterStream ( Writer * characterStream)
inline

Set the character stream for this output target.

Parameters
characterStreampointer to character stream that will contain the result document

Definition at line 237 of file XSLTResultTarget.hpp.

◆ setEncoding() [1/2]

void xalanc::XSLTResultTarget::setEncoding ( const XalanDOMChar * encoding)
inline

Set the character encoding, if known.

Parameters
encodingnew encoding string

Definition at line 196 of file XSLTResultTarget.hpp.

◆ setEncoding() [2/2]

void xalanc::XSLTResultTarget::setEncoding ( const XalanDOMString & encoding)
inline

Set the character encoding, if known.

Parameters
encodingnew encoding string

Definition at line 214 of file XSLTResultTarget.hpp.

◆ setFileName() [1/2]

void xalanc::XSLTResultTarget::setFileName ( const char * fileName)
inline

Set the file name where the results will be written.

Parameters
fileNamesystem identifier as a string

Definition at line 133 of file XSLTResultTarget.hpp.

◆ setFileName() [2/2]

void xalanc::XSLTResultTarget::setFileName ( const XalanDOMString & fileName)
inline

Set the file name where the results will be written.

Parameters
fileNamesystem identifier as a string

Definition at line 151 of file XSLTResultTarget.hpp.

◆ setFormatterListener()

void xalanc::XSLTResultTarget::setFormatterListener ( FormatterListener * handler)
inline

Set a FormatterListener to process the result tree events.

Parameters
handlerpointer to new listener

Definition at line 281 of file XSLTResultTarget.hpp.

◆ setStream()

void xalanc::XSLTResultTarget::setStream ( FILE * theStream)
inline

Set the stream for this output target.

@theStream pointer to stream.

Definition at line 270 of file XSLTResultTarget.hpp.


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