Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
XalanStdOutputStream Class Reference
Inheritance diagram for XalanStdOutputStream:
XalanOutputStream

Classes

class  XalanStdOutputStreamWriteException

Public Types

typedef std::ostream StreamType
typedef std::streamsize StreamSizeType
- Public Types inherited from XalanOutputStream
enum  { eDefaultBufferSize = 512u, eDefaultTranscoderBlockSize = 1024u }
typedef XalanVector< XalanDOMChar > BufferType
typedef XalanVector< char > TranscodeVectorType
typedef
XalanTranscodingServices::size_type 
size_type
typedef
XalanTranscodingServices::UnicodeCharType 
UnicodeCharType

Public Member Functions

 XalanStdOutputStream (StreamType &theOutputStream, MemoryManagerType &theManager XALAN_DEFAULT_MEMMGR)
 Construct a XalanStdOutputStream instance for output to the standard output device.
virtual ~XalanStdOutputStream ()
- Public Member Functions inherited from XalanOutputStream
 XalanOutputStream (MemoryManagerType &theManager, size_type theBufferSize=eDefaultBufferSize, size_type theTranscoderBlockSize=eDefaultTranscoderBlockSize, bool fThrowTranscodeException=true)
 Constructor.
virtual ~XalanOutputStream ()
MemoryManagerTypegetMemoryManager ()
virtual void newline ()
 Write the appropriate newline character(s) to the stream.
virtual const XalanDOMChar * getNewlineString () const
 Get the string which is appropriate for inserting a line feed in the stream.
void flushBuffer ()
 Flush the stream's transcoding buffer, but do not request the implementation class to flush its buffer.
void flush ()
 Flush the stream's buffer.
void write (char theChar)
 Write a character to the output stream.
void write (XalanDOMChar theChar)
 Write a wide character to the output stream.
void write (const char *theBuffer)
 Write a null-terminated string to the output file.
void write (const XalanDOMChar *theBuffer)
 Write a null-terminated wide string to the output file.
void write (const char *theBuffer, size_type theBufferLength)
 Write a specified number of characters to the output stream.
void write (const XalanDOMChar *theBuffer, size_type theBufferLength)
 Write a specified number of characters to the output stream.
const XalanDOMStringgetOutputEncoding () const
 Get the output encoding for the stream.
void setOutputEncoding (const XalanDOMString &theEncoding)
 Set the output encoding for the stream.
bool canTranscodeTo (UnicodeCharType theChar) const
 Determine if a given value can be represented in the output encoding.
const XalanOutputTranscodergetTranscoder () const
bool getThrowTranscodeException () const
 Set the flag that indicates whether a transcoding error should throw an exception.
void setThrowTranscodeException (bool flag)
 Set the flag that indicates whether a transcoding error should throw an exception.
void setBufferSize (size_type theBufferSize)
 Set the size of the output buffer.

Static Public Member Functions

static XalanStdOutputStreamcreate (StreamType &theOutputStream, MemoryManagerType &theManager)
- Static Public Member Functions inherited from XalanOutputStream
static const XalanDOMChar * defaultNewlineString ()

Protected Member Functions

virtual void writeData (const char *theBuffer, size_type theBufferLength)
 Write the data in the buffer.
virtual void doFlush ()
 Flush the stream.
- Protected Member Functions inherited from XalanOutputStream
void transcode (const XalanDOMChar *theBuffer, size_type theBufferLength, TranscodeVectorType &theDestination)
 Transcode a wide string.

Additional Inherited Members

- Static Protected Attributes inherited from XalanOutputStream
static const XalanDOMChar s_nlString []
static const XalanDOMChar s_nlCRString []
static const
XalanDOMString::size_type 
s_nlStringLength
static const
XalanDOMString::size_type 
s_nlCRStringLength

Member Typedef Documentation

typedef std::streamsize XalanStdOutputStream::StreamSizeType
typedef std::ostream XalanStdOutputStream::StreamType

Constructor & Destructor Documentation

XalanStdOutputStream::XalanStdOutputStream ( StreamType theOutputStream,
MemoryManagerType &theManager  XALAN_DEFAULT_MEMMGR 
)

Construct a XalanStdOutputStream instance for output to the standard output device.

Parameters
theOutputStreamoutput stream to use
virtual XalanStdOutputStream::~XalanStdOutputStream ( )
virtual

Member Function Documentation

static XalanStdOutputStream* XalanStdOutputStream::create ( StreamType theOutputStream,
MemoryManagerType theManager 
)
static
virtual void XalanStdOutputStream::doFlush ( )
protectedvirtual

Flush the stream.

Implements XalanOutputStream.

virtual void XalanStdOutputStream::writeData ( const char *  theBuffer,
size_type  theBufferLength 
)
protectedvirtual

Write the data in the buffer.

Parameters
theBufferThe data to write
theBufferLengthThe length of theBuffer.

Implements XalanOutputStream.


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