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

#include <xalanc/PlatformSupport/XalanTranscodingServices.hpp>

Inheritance diagram for xalanc::XalanOutputTranscoder:
[legend]

Public Types

typedef XalanTranscodingServices::XalanXMLByte XalanXMLByte
 
typedef XalanTranscodingServices::eCode eCode
 
typedef XalanTranscodingServices::size_type size_type
 

Public Member Functions

 XalanOutputTranscoder (MemoryManager &theManager)
 
virtual ~XalanOutputTranscoder ()
 
MemoryManager & getMemoryManager ()
 
virtual eCode transcode (const XalanDOMChar *theSourceData, size_type theSourceCount, XalanXMLByte *theTarget, size_type theTargetSize, size_type &theSourceCharsTranscoded, size_type &theTargetBytesUsed)=0
 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)=0
 Transcode data from the transcoder's encoding to UTF-16. More...
 
virtual bool canTranscodeTo (XalanUnicodeChar theChar) const =0
 

Detailed Description

Definition at line 332 of file XalanTranscodingServices.hpp.

Member Typedef Documentation

◆ eCode

Definition at line 337 of file XalanTranscodingServices.hpp.

◆ size_type

Definition at line 338 of file XalanTranscodingServices.hpp.

◆ XalanXMLByte

Definition at line 336 of file XalanTranscodingServices.hpp.

Constructor & Destructor Documentation

◆ XalanOutputTranscoder()

xalanc::XalanOutputTranscoder::XalanOutputTranscoder ( MemoryManager &  theManager)
explicit

◆ ~XalanOutputTranscoder()

virtual xalanc::XalanOutputTranscoder::~XalanOutputTranscoder ( )
virtual

Member Function Documentation

◆ canTranscodeTo()

virtual bool xalanc::XalanOutputTranscoder::canTranscodeTo ( XalanUnicodeChar  theChar) const
pure virtual

◆ getMemoryManager()

MemoryManager& xalanc::XalanOutputTranscoder::getMemoryManager ( )
inline

Definition at line 347 of file XalanTranscodingServices.hpp.

◆ transcode() [1/2]

virtual eCode xalanc::XalanOutputTranscoder::transcode ( const XalanDOMChar *  theSourceData,
size_type  theSourceCount,
XalanXMLByte theTarget,
size_type  theTargetSize,
size_type theSourceCharsTranscoded,
size_type theTargetBytesUsed 
)
pure 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.

Implemented in xalanc::XalanUTF16Transcoder, and xalanc::XalanToXercesTranscoderWrapper.

◆ transcode() [2/2]

virtual eCode xalanc::XalanOutputTranscoder::transcode ( const XalanXMLByte theSourceData,
size_type  theSourceCount,
XalanDOMChar *  theTarget,
size_type  theTargetSize,
size_type theSourceCharsTranscoded,
size_type theTargetBytesUsed,
unsigned char *  theCharSizes 
)
pure 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.

Implemented in xalanc::XalanUTF16Transcoder, and xalanc::XalanToXercesTranscoderWrapper.


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