Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

XalanOutputStream Class Reference

Inheritance diagram for XalanOutputStream:

XalanFileOutputStream XalanFStreamOutputStream XalanNullOutputStream XalanStdOutputStream XalanTransformerOutputStream

List of all members.

Public Types

Public Member Functions

Static Public Member Functions

Protected Member Functions

Static Protected Attributes

Classes


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum

Enumerator:
eDefaultBufferSize 
eDefaultTranscoderBlockSize 


Constructor & Destructor Documentation

XalanOutputStream::XalanOutputStream ( MemoryManagerType theManager,
size_type  theBufferSize = eDefaultBufferSize,
size_type  theTranscoderBlockSize = eDefaultTranscoderBlockSize,
bool  fThrowTranscodeException = true 
) [explicit]

Constructor.

Parameters:
theBufferSize the size of the transcoding buffer
theTranscoderBlockSize the size of the block used by the transcoder
fThrowTranscodeException If true, an error transcoding will result in an exception being thrown.

virtual XalanOutputStream::~XalanOutputStream (  )  [virtual]


Member Function Documentation

MemoryManagerType& XalanOutputStream::getMemoryManager (  ) 

static const XalanDOMChar* XalanOutputStream::defaultNewlineString (  )  [static]

virtual void XalanOutputStream::newline (  )  [virtual]

Write the appropriate newline character(s) to the stream.

virtual const XalanDOMChar* XalanOutputStream::getNewlineString (  )  const [virtual]

Get the string which is appropriate for inserting a line feed in the stream.

void XalanOutputStream::flushBuffer (  ) 

Flush the stream's transcoding buffer, but do not request the implementation class to flush its buffer.

void XalanOutputStream::flush (  ) 

Flush the stream's buffer.

void XalanOutputStream::write ( char  theChar  ) 

Write a character to the output stream.

The character will not be transcoded.

Parameters:
theChar the character to write

void XalanOutputStream::write ( XalanDOMChar  theChar  ) 

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

void XalanOutputStream::write ( const char *  theBuffer  ) 

Write a null-terminated string to the output file.

The character will not be transcoded. The caller is responsible for making sure the buffer is flushed before calling this member function.

Parameters:
theBuffer character buffer to write

void XalanOutputStream::write ( const XalanDOMChar *  theBuffer  ) 

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

void XalanOutputStream::write ( const char *  theBuffer,
size_type  theBufferLength 
)

Write a specified number of characters to the output stream.

The string will not be transcoded. The caller is responsible for making sure the buffer is flushed before calling this member function.

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

void XalanOutputStream::write ( const XalanDOMChar *  theBuffer,
size_type  theBufferLength 
)

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

const XalanDOMString& XalanOutputStream::getOutputEncoding (  )  const

Get the output encoding for the stream.

Returns:
The encoding name

void XalanOutputStream::setOutputEncoding ( const XalanDOMString theEncoding  ) 

Set the output encoding for the stream.

Parameters:
theEncoding The encoding name

bool XalanOutputStream::canTranscodeTo ( UnicodeCharType  theChar  )  const

Determine if a given value can be represented in the output encoding.

Returns:
true if the value can be represented, and false if not.

const XalanOutputTranscoder* XalanOutputStream::getTranscoder (  )  const

bool XalanOutputStream::getThrowTranscodeException (  )  const

Set the flag that indicates whether a transcoding error should throw an exception.

The default is to throw an exception. If this flag is false, and and an error occurs transcoding, then data will likely be lost.

Returns:
the value of the flag.

void XalanOutputStream::setThrowTranscodeException ( bool  flag  ) 

Set the flag that indicates whether a transcoding error should throw an exception.

The default is to throw an exception. If this flag is false, and and an error occurs transcoding, then data will likely be lost.

Parameters:
the new value of the flag.

void XalanOutputStream::setBufferSize ( size_type  theBufferSize  ) 

Set the size of the output buffer.

Parameters:
theBufferSize The buffer size.

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

Transcode a wide string.

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

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

Write the data in the buffer.

Parameters:
theBuffer The data to write
theBufferLength The length of theBuffer.

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


Member Data Documentation

const XalanDOMChar XalanOutputStream::s_nlString[] [static, protected]

const XalanDOMChar XalanOutputStream::s_nlCRString[] [static, protected]


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