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

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

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

HexBin Class Reference

List of all members.

Static Public Methods

int getDataLength (const XMLCh *const hexData)
 return the length of hexData in terms of HexBinary. More...

bool isArrayByteHex (const XMLCh *const hexData)
 check an array of data against the Hex table. More...

XMLCh * getCanonicalRepresentation (const XMLCh *const hexData, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 get canonical representation. More...

XMLCh * decode (const XMLCh *const hexData, MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)
 Decodes HexBinary data into XMLCh. More...


Member Function Documentation

XMLCh* HexBin::decode const XMLCh *const    hexData,
MemoryManager *const    manager = XMLPlatformUtils::fgMemoryManager
[static]
 

Decodes HexBinary data into XMLCh.

NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed. You can call XMLString::release to release this returned buffer.

If a memory manager is provided, ask the memory manager to de-allocate the returned buffer.

Parameters:
hexData  HexBinary data in XMLCh stream.
manager  client provided memory manager
Returns:
Decoded binary data in XMLCh stream, or NULL if input data can not be decoded.
See also:
XMLString::release(XMLCh**)

XMLCh* HexBin::getCanonicalRepresentation const XMLCh *const    hexData,
MemoryManager *const    manager = XMLPlatformUtils::fgMemoryManager
[static]
 

get canonical representation.

Caller is responsible for the proper deallcation of the string returned.

Parameters:
hexData  A string containing the HexBinary
manager  The MemoryManager to use to allocate the string
return: the canonical representation of the HexBinary if it is a valid HexBinary, 0 otherwise

int HexBin::getDataLength const XMLCh *const    hexData [static]
 

return the length of hexData in terms of HexBinary.

Parameters:
hexData  A string containing the HexBinary
return: -1 if it contains any invalid HexBinary the length of the HexNumber otherwise.

bool HexBin::isArrayByteHex const XMLCh *const    hexData [static]
 

check an array of data against the Hex table.

Parameters:
hexData  A string containing the HexBinary
return: false if it contains any invalid HexBinary true otherwise.


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


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.