|
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
18 #if !defined(XALANOUTPUTSTREAM_HEADER_GUARD_1357924680)
19 #define XALANOUTPUTSTREAM_HEADER_GUARD_1357924680
45 class XalanOutputTranscoder;
53 enum { eDefaultBufferSize = 512u, eDefaultTranscoderBlockSize = 1024u };
68 MemoryManager& theManager,
69 size_type theBufferSize = eDefaultBufferSize,
70 size_type theTranscoderBlockSize = eDefaultTranscoderBlockSize,
71 bool fThrowTranscodeException =
true);
79 return m_buffer.getMemoryManager();
82 static const XalanDOMChar*
85 #if defined(XALAN_NEWLINE_IS_CRLF)
101 virtual const XalanDOMChar*
102 getNewlineString()
const;
144 assert(m_bufferSize > 0);
146 if (m_buffer.size() == m_bufferSize)
151 m_buffer.push_back(theChar);
164 assert(theBuffer != 0);
165 assert(m_buffer.empty() ==
true);
167 write(theBuffer,
length(theBuffer));
177 write(
const XalanDOMChar* theBuffer)
179 write(theBuffer,
length(theBuffer));
192 const char* theBuffer,
195 assert(theBuffer != 0);
196 assert(m_buffer.empty() ==
true);
211 const XalanDOMChar* theBuffer,
240 canTranscodeTo(XalanUnicodeChar theChar)
const;
261 return m_throwTranscodeException;
276 m_throwTranscodeException = flag;
294 MemoryManager& theManager,
295 const Locator* theLocator);
299 MemoryManager& theManager);
306 virtual const XalanDOMChar*
319 const Locator* theLocator);
329 other.m_memoryManager)
342 virtual const XalanDOMChar*
357 const Locator* theLocator);
368 virtual const XalanDOMChar*
388 const Locator* theLocator);
398 virtual const XalanDOMChar*
419 const XalanDOMChar* theBuffer,
431 const char* theBuffer,
440 static const XalanDOMChar s_nlString[];
441 static const XalanDOMChar s_nlCRString[];
459 const XalanDOMChar* theBuffer,
475 bool m_throwTranscodeException;
486 #endif // XALANOUTPUTSTREAM_HEADER_GUARD_1357924680
static const XalanDOMString::size_type s_nlCRStringLength
void write(const char *theBuffer, size_type theBufferLength)
Write a specified number of characters to the output stream.
void write(const XalanDOMChar *theBuffer)
Write a null-terminated wide string to the output file.
MemoryManager & getMemoryManager()
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
XalanTranscodingServices::size_type size_type
UnsupportedEncodingException(const UnsupportedEncodingException &other)
const XalanDOMString & getEncoding() const
XalanVector< XalanDOMChar > BufferType
static const XalanDOMChar * defaultNewlineString()
void write(XalanDOMChar theChar)
Write a wide character to the output stream.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
XalanVector< char > TranscodeVectorType
const XalanDOMString & getEncoding() const
void flush()
Flush the stream's buffer.
const XalanDOMString & getOutputEncoding() const
Get the output encoding for the stream.
static const XalanDOMString::size_type s_nlStringLength
bool getThrowTranscodeException() const
Set the flag that indicates whether a transcoding error should throw an exception.
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
const XalanOutputTranscoder * getTranscoder() const
void write(const char *theBuffer)
Write a null-terminated string to the output file.
void write(char theChar)
Write a character to the output stream.
void setThrowTranscodeException(bool flag)
Set the flag that indicates whether a transcoding error should throw an exception.