Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | List of all members
XSLTResultTarget Class Reference

#include <XSLTResultTarget.hpp>

Public Types

typedef std::ostream StreamType
 

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. More...
 
 XSLTResultTarget (const XalanDOMChar *fileName, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a file name. More...
 
 XSLTResultTarget (const char *fileName, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a file name. More...
 
 XSLTResultTarget (StreamType *theStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a stream. More...
 
 XSLTResultTarget (StreamType &theStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a stream. More...
 
 XSLTResultTarget (Writer *characterStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a character stream. More...
 
 XSLTResultTarget (FILE *characterStream, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a stream. More...
 
 XSLTResultTarget (FormatterListener &flistener, MemoryManager &theManager XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
 Create a new output target with a FormatterListener. More...
 
 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. More...
 
void setFileName (const XalanDOMString &fileName)
 Set the file name where the results will be written. More...
 
const XalanDOMStringgetFileName () const
 Get the file name where the results will be written to. More...
 
void setByteStream (StreamType *byteStream)
 Set the byte stream for this output target. More...
 
StreamTypegetByteStream () const
 Get the byte stream for this output target. More...
 
void setEncoding (const XalanDOMChar *encoding)
 Set the character encoding, if known. More...
 
void setEncoding (const XalanDOMString &encoding)
 Set the character encoding, if known. More...
 
const XalanDOMStringgetEncoding () const
 Get the character encoding in use. More...
 
void setCharacterStream (Writer *characterStream)
 Set the character stream for this output target. More...
 
WritergetCharacterStream () const
 Get the character stream for this output target. More...
 
FILE * getStream () const
 Get the stream for this output target. More...
 
void setStream (FILE *theStream)
 Set the stream for this output target. More...
 
void setFormatterListener (FormatterListener *handler)
 Set a FormatterListener to process the result tree events. More...
 
FormatterListenergetFormatterListener () const
 Get the FormatterListener that will process the result tree events. More...
 

Detailed Description

Definition at line 49 of file XSLTResultTarget.hpp.

Member Typedef Documentation

◆ StreamType

typedef std::ostream XSLTResultTarget::StreamType

Definition at line 56 of file XSLTResultTarget.hpp.

Constructor & Destructor Documentation

◆ XSLTResultTarget() [1/10]

XSLTResultTarget::XSLTResultTarget ( MemoryManager &theManager  XALAN_DEFAULT_CONSTRUCTOR_MEMMGR)
explicit

◆ XSLTResultTarget() [2/10]

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

◆ XSLTResultTarget() [3/10]

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

◆ XSLTResultTarget() [4/10]

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

◆ XSLTResultTarget() [5/10]

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

◆ XSLTResultTarget() [6/10]

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

◆ XSLTResultTarget() [7/10]

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

◆ XSLTResultTarget() [8/10]

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

◆ XSLTResultTarget() [9/10]

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.

◆ XSLTResultTarget() [10/10]

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

◆ ~XSLTResultTarget()

XSLTResultTarget::~XSLTResultTarget ( )

Member Function Documentation

◆ getByteStream()

StreamType* 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 195 of file XSLTResultTarget.hpp.

◆ getCharacterStream()

Writer* 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 258 of file XSLTResultTarget.hpp.

◆ getEncoding()

const XalanDOMString& XSLTResultTarget::getEncoding ( ) const
inline

Get the character encoding in use.

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

Definition at line 235 of file XSLTResultTarget.hpp.

◆ getFileName()

const XalanDOMString& XSLTResultTarget::getFileName ( ) const
inline

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

Returns
file name string

Definition at line 172 of file XSLTResultTarget.hpp.

◆ getFormatterListener()

FormatterListener* XSLTResultTarget::getFormatterListener ( ) const
inline

Get the FormatterListener that will process the result tree events.

Returns
pointer to new listener

Definition at line 302 of file XSLTResultTarget.hpp.

◆ getStream()

FILE* XSLTResultTarget::getStream ( ) const
inline

Get the stream for this output target.

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

Definition at line 269 of file XSLTResultTarget.hpp.

◆ setByteStream()

void 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 184 of file XSLTResultTarget.hpp.

◆ setCharacterStream()

void 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 247 of file XSLTResultTarget.hpp.

◆ setEncoding() [1/2]

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

Set the character encoding, if known.

Parameters
encodingnew encoding string

Definition at line 206 of file XSLTResultTarget.hpp.

◆ setEncoding() [2/2]

void XSLTResultTarget::setEncoding ( const XalanDOMString encoding)
inline

Set the character encoding, if known.

Parameters
encodingnew encoding string

Definition at line 224 of file XSLTResultTarget.hpp.

◆ setFileName() [1/2]

void 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 143 of file XSLTResultTarget.hpp.

◆ setFileName() [2/2]

void 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 161 of file XSLTResultTarget.hpp.

◆ setFormatterListener()

void XSLTResultTarget::setFormatterListener ( FormatterListener handler)
inline

Set a FormatterListener to process the result tree events.

Parameters
handlerpointer to new listener

Definition at line 291 of file XSLTResultTarget.hpp.

◆ setStream()

void XSLTResultTarget::setStream ( FILE *  theStream)
inline

Set the stream for this output target.

pointer to stream.

Definition at line 280 of file XSLTResultTarget.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