Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XalanOutputStream Class Reference

#include <XalanOutputStream.hpp>

Inheritance diagram for XalanOutputStream:

XalanFileOutputStream XalanNullOutputStream XalanStdOutputStream Collaboration diagram for XalanOutputStream:

List of all members.

Public Types

Public Methods

Protected Methods


Detailed Description


Member Typedef Documentation

typedef std::vector<XalanDOMChar> XalanOutputStream::BufferType

typedef std::vector<char> XalanOutputStream::TranscodeVectorType


Enumeration Value Documentation

XalanOutputStream::eDefaultBufferSize = 512

XalanOutputStream::eDefaultTranscoderBlockSize = 1024


Constructor & Destructor Documentation

explicit XalanOutputStream::XalanOutputStream ( BufferType::size_type theBufferSize = eDefaultBufferSize,
TranscodeVectorType::size_type theTranscoderBlockSize = eDefaultTranscoderBlockSize)

virtual XalanOutputStream::~XalanOutputStream () [virtual]


Member Function Documentation

virtual void XalanOutputStream::doFlush () [protected, pure virtual]

Reimplemented in XalanFileOutputStream, and XalanStdOutputStream.

void XalanOutputStream::flush () [virtual]

Flush the stream's buffer.

Reimplemented in XalanNullOutputStream.

const XalanDOMString & XalanOutputStream::getOutputEncoding () const [virtual]

Get the output encoding for the stream.

Returns:
The encoding name

void XalanOutputStream::setBufferSize ( BufferType::size_type theBufferSize) [virtual]

Set the size of the output buffer.

Parameters:
theBufferSize   The buffer size.

void XalanOutputStream::setOutputEncoding ( const XalanDOMString & theEncoding) [virtual]

Set the output encoding for the stream.

Parameters:
theEncoding   The encoding name

void XalanOutputStream::transcode ( const XalanDOMChar * theBuffer,
unsigned long theBufferLength,
TranscodeVectorType & theDestination) [protected]

Transcode a wide string.

Parameters:
theBuffer   The string to transcode.
theBufferLength   The length of the string.
theDestination   The destination vector.

void XalanOutputStream::transcode ( const XalanDOMChar * theBuffer,
TranscodeVectorType & theDestination) [protected]

Transcode a null-terminated wide string.

Parameters:
theBuffer   The string to transcode.
theDestination   The destination vector.

void XalanOutputStream::write ( const XalanDOMChar * theBuffer,
unsigned long theBufferLength) [virtual]

Write a specified number of characters to the output stream.

The string will be transcoded, if an output encoding is specified.

Parameters:
theBuffer   character buffer to write
theBufferLength   number of characters to write

Reimplemented in XalanNullOutputStream.

void XalanOutputStream::write ( const char * theBuffer,
unsigned long theBufferLength) [virtual]

Write a specified number of characters to the output stream.

The string will not be transcoded.

Parameters:
theBuffer   character buffer to write
theBufferLength   number of characters to write

Reimplemented in XalanNullOutputStream.

void XalanOutputStream::write ( const XalanDOMChar * theBuffer) [virtual]

Write a null-terminated wide string to the output file.

The string will be transcoded, if an output encoding is specified.

Parameters:
theBuffer   character buffer to write

Reimplemented in XalanNullOutputStream.

void XalanOutputStream::write ( const char * theBuffer) [virtual]

Write a null-terminated string to the output file.

The character will not be transcoded.

Parameters:
theBuffer   character buffer to write

Reimplemented in XalanNullOutputStream.

void XalanOutputStream::write ( XalanDOMChar theChar) [virtual]

Write a wide character to the output stream.

The character will be transcoded, if an output encoding is specified.

Parameters:
theChar   the character to write

Reimplemented in XalanNullOutputStream.

void XalanOutputStream::write ( char theChar) [virtual]

Write a character to the output stream.

The character will not be transcoded.

Parameters:
theChar   the character to write

Reimplemented in XalanNullOutputStream.

virtual void XalanOutputStream::writeData ( const char * theBuffer,
unsigned long theBufferLength) [protected, pure virtual]

Reimplemented in XalanFileOutputStream, and XalanStdOutputStream.


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++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.