Xalan-C++ API Reference  1.12.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
xalanc::XalanToXercesTranscoderWrapper Class Reference

#include <xalanc/PlatformSupport/XalanToXercesTranscoderWrapper.hpp>

Inheritance diagram for xalanc::XalanToXercesTranscoderWrapper:
[legend]
Collaboration diagram for xalanc::XalanToXercesTranscoderWrapper:
[legend]

Public Types

typedef xercesc::XMLTranscoder XMLTranscoderType
 
- Public Types inherited from xalanc::XalanOutputTranscoder
typedef XalanTranscodingServices::XalanXMLByte XalanXMLByte
 
typedef XalanTranscodingServices::eCode eCode
 
typedef XalanTranscodingServices::size_type size_type
 

Public Member Functions

 XalanToXercesTranscoderWrapper (MemoryManager &theManager, XMLTranscoderType &theTranscoder)
 
virtual ~XalanToXercesTranscoderWrapper ()
 
virtual eCode transcode (const XalanDOMChar *theSourceData, size_type theSourceCount, XalanXMLByte *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed)
 Transcode data from UTF-16 to the transcoder's encoding. More...
 
virtual eCode transcode (const XalanXMLByte *theSourceData, size_type theSourceCount, XalanDOMChar *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed, unsigned char *theCharSizes)
 Transcode data from the transcoder's encoding to UTF-16. More...
 
virtual bool canTranscodeTo (XalanUnicodeChar theChar) const
 
- Public Member Functions inherited from xalanc::XalanOutputTranscoder
 XalanOutputTranscoder (MemoryManager &theManager)
 
virtual ~XalanOutputTranscoder ()
 
MemoryManager & getMemoryManager ()
 

Static Public Member Functions

static XalanToXercesTranscoderWrappercreate (MemoryManager &theManager, XMLTranscoderType &theTranscoder)
 

Detailed Description

Definition at line 44 of file XalanToXercesTranscoderWrapper.hpp.

Member Typedef Documentation

◆ XMLTranscoderType

Definition at line 48 of file XalanToXercesTranscoderWrapper.hpp.

Constructor & Destructor Documentation

◆ XalanToXercesTranscoderWrapper()

xalanc::XalanToXercesTranscoderWrapper::XalanToXercesTranscoderWrapper ( MemoryManager &  theManager,
XMLTranscoderType theTranscoder 
)
explicit

◆ ~XalanToXercesTranscoderWrapper()

virtual xalanc::XalanToXercesTranscoderWrapper::~XalanToXercesTranscoderWrapper ( )
virtual

Member Function Documentation

◆ canTranscodeTo()

virtual bool xalanc::XalanToXercesTranscoderWrapper::canTranscodeTo ( XalanUnicodeChar  theChar) const
virtual

◆ create()

static XalanToXercesTranscoderWrapper* xalanc::XalanToXercesTranscoderWrapper::create ( MemoryManager &  theManager,
XMLTranscoderType theTranscoder 
)
static

◆ transcode() [1/2]

virtual eCode xalanc::XalanToXercesTranscoderWrapper::transcode ( const XalanDOMChar *  theSourceData,
size_type  theSourceCount,
XalanXMLByte theTarget,
size_type  theTargetSize,
size_type theSourceCharsTranscoded,
size_type theTargetBytesUsed 
)
virtual

Transcode data from UTF-16 to the transcoder's encoding.

If successfull, theResult will be set to OK. If not, it will be set to one of the other codes.

Parameters
theSourceDataThe source data to transcode
theSourceCountThe length of the source data.
theTargetThe target array for storing the transcoded data.
theTargetSizeThe number of characters that can be stored in the target.
theSourceCharsTranscodedThe count of the source characters that were transcoded.
theTargetBytesUsedThe number of characters stored in the target array
Returns
The result code.

Implements xalanc::XalanOutputTranscoder.

◆ transcode() [2/2]

virtual eCode xalanc::XalanToXercesTranscoderWrapper::transcode ( const XalanXMLByte theSourceData,
size_type  theSourceCount,
XalanDOMChar *  theTarget,
size_type  theTargetSize,
size_type theSourceCharsTranscoded,
size_type theTargetBytesUsed,
unsigned char *  theCharSizes 
)
virtual

Transcode data from the transcoder's encoding to UTF-16.

If successfull, theResult will be set to OK. If not, it will be set to one of the other codes.

Parameters
theSourceDataThe source data to transcode
theSourceCountThe length of the source data.
theTargetThe target array for storing the transcoded data.
theTargetSizeThe number of characters that can be stored in the target.
theSourceCharsTranscodedThe count of the source characters that were transcoded.
theTargetBytesUsedThe number of characters stored in the target array
theCharSizesFor each character in theTarget, the number of characters consumed from theSourceData.
Returns
The result code.

Implements xalanc::XalanOutputTranscoder.


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