http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Installation
Build

API Docs
Samples
Programming
Migration
FAQs

Releases
Feedback

PDF Document

Download
Dev Snapshots
CVS Repository
Mail Archive

API Docs for SAX and DOM
 

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

XMLBuffer Class Reference

XMLBuffer is a lightweight, expandable Unicode text buffer. More...

#include <XMLBuffer.hpp>

List of all members.

Public Methods

void append (const XMLCh toAppend)
void append ( const XMLCh* const chars , const unsigned int count = 0 )
const XMLCh* getRawBuffer () const
XMLCh* getRawBuffer ()
void reset ()
void set ( const XMLCh* const chars , const unsigned int count = 0 )
bool getInUse ()
unsigned int getLen () const
bool isEmpty ()
void setInUse (const bool newValue)
Constructor
 XMLBuffer ()
Destructor
 ~XMLBuffer ()

Friends

class  XMLBufBid


Detailed Description

XMLBuffer is a lightweight, expandable Unicode text buffer.

Since XML is inherently theoretically unbounded in terms of the sizes of things, we very often need to have expandable buffers. The primary concern here is that appends of characters and other buffers or strings be very fast, so it always maintains the current buffer size.

The buffer is not nul terminated until some asks to see the raw buffer contents. This also avoids overhead during append operations.


Constructor & Destructor Documentation

XMLBuffer::XMLBuffer ( )

XMLBuffer::~XMLBuffer ( ) []


Member Function Documentation

void XMLBuffer::append ( const XMLCh * const chars,
const unsigned int count = 0 )

void XMLBuffer::append ( XMLCh toAppend ) []

bool XMLBuffer::getInUse ( ) []

unsigned int XMLBuffer::getLen ( ) const []

XMLCh * XMLBuffer::getRawBuffer ( ) []

const XMLCh * XMLBuffer::getRawBuffer ( ) const []

bool XMLBuffer::isEmpty ( ) []

void XMLBuffer::reset ( ) []

void XMLBuffer::set ( const XMLCh * const chars,
const unsigned int count = 0 )

void XMLBuffer::setInUse ( bool newValue ) []


Friends And Related Function Documentation

class XMLBufBid [friend]


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


Copyright © 2000 The Apache Software Foundation. All Rights Reserved.