#include <XalanOutputStream.hpp>
Inherited by XalanFileOutputStream, XalanFStreamOutputStream, XalanNullOutputStream, XalanStdOutputStream, and XalanTransformerOutputStream.
Definition at line 49 of file XalanOutputStream.hpp.
◆ BufferType
◆ size_type
◆ TranscodeVectorType
◆ anonymous enum
◆ XalanOutputStream()
Constructor.
- Parameters
-
theBufferSize | the size of the transcoding buffer |
theTranscoderBlockSize | the size of the block used by the transcoder |
fThrowTranscodeException | If true, an error transcoding will result in an exception being thrown. |
◆ ~XalanOutputStream()
virtual XalanOutputStream::~XalanOutputStream |
( |
| ) |
|
|
virtual |
◆ canTranscodeTo()
bool XalanOutputStream::canTranscodeTo |
( |
XalanUnicodeChar |
theChar | ) |
const |
Determine if a given value can be represented in the output encoding.
- Returns
- true if the value can be represented, and false if not.
◆ defaultNewlineString()
static const XalanDOMChar* XalanOutputStream::defaultNewlineString |
( |
| ) |
|
|
inlinestatic |
◆ doFlush()
virtual void XalanOutputStream::doFlush |
( |
| ) |
|
|
protectedpure virtual |
◆ flush()
void XalanOutputStream::flush |
( |
| ) |
|
|
inline |
◆ flushBuffer()
void XalanOutputStream::flushBuffer |
( |
| ) |
|
Flush the stream's transcoding buffer, but do not request the implementation class to flush its buffer.
◆ formatMessage()
◆ getMemoryManager()
MemoryManager& XalanOutputStream::getMemoryManager |
( |
| ) |
|
|
inline |
◆ getNewlineString()
virtual const XalanDOMChar* XalanOutputStream::getNewlineString |
( |
| ) |
const |
|
virtual |
Get the string which is appropriate for inserting a line feed in the stream.
◆ getOutputEncoding()
◆ getThrowTranscodeException()
bool XalanOutputStream::getThrowTranscodeException |
( |
| ) |
const |
|
inline |
Set the flag that indicates whether a transcoding error should throw an exception.
The default is to throw an exception. If this flag is false, and and an error occurs transcoding, then data will likely be lost.
- Returns
- the value of the flag.
Definition at line 259 of file XalanOutputStream.hpp.
◆ getTranscoder()
◆ newline()
virtual void XalanOutputStream::newline |
( |
| ) |
|
|
virtual |
Write the appropriate newline character(s) to the stream.
◆ setBufferSize()
void XalanOutputStream::setBufferSize |
( |
size_type |
theBufferSize | ) |
|
Set the size of the output buffer.
- Parameters
-
theBufferSize | The buffer size. |
◆ setOutputEncoding()
void XalanOutputStream::setOutputEncoding |
( |
const XalanDOMString & |
theEncoding | ) |
|
Set the output encoding for the stream.
- Parameters
-
theEncoding | The encoding name |
◆ setThrowTranscodeException()
void XalanOutputStream::setThrowTranscodeException |
( |
bool |
flag | ) |
|
|
inline |
Set the flag that indicates whether a transcoding error should throw an exception.
The default is to throw an exception. If this flag is false, and and an error occurs transcoding, then data will likely be lost.
- Parameters
-
the | new value of the flag. |
Definition at line 274 of file XalanOutputStream.hpp.
◆ transcode()
Transcode a wide string.
- Parameters
-
theBuffer | The string to transcode. |
theBufferLength | The length of the string. |
theDestination | The destination vector. |
◆ write() [1/6]
void XalanOutputStream::write |
( |
char |
theChar | ) |
|
|
inline |
Write a character to the output stream.
The character will not be transcoded.
- Parameters
-
theChar | the character to write |
Definition at line 130 of file XalanOutputStream.hpp.
◆ write() [2/6]
void XalanOutputStream::write |
( |
XalanDOMChar |
theChar | ) |
|
|
inline |
Write a wide character to the output stream.
The character will be transcoded, if an output encoding is specified.
- Parameters
-
theChar | the character to write |
Definition at line 142 of file XalanOutputStream.hpp.
◆ write() [3/6]
void XalanOutputStream::write |
( |
const char * |
theBuffer | ) |
|
|
inline |
Write a null-terminated string to the output file.
The character will not be transcoded. The caller is responsible for making sure the buffer is flushed before calling this member function.
- Parameters
-
theBuffer | character buffer to write |
Definition at line 162 of file XalanOutputStream.hpp.
◆ write() [4/6]
void XalanOutputStream::write |
( |
const XalanDOMChar * |
theBuffer | ) |
|
|
inline |
Write a null-terminated wide string to the output file.
The string will be transcoded, if an output encoding is specified.
- Parameters
-
theBuffer | character buffer to write |
Definition at line 177 of file XalanOutputStream.hpp.
◆ write() [5/6]
void XalanOutputStream::write |
( |
const char * |
theBuffer, |
|
|
size_type |
theBufferLength |
|
) |
| |
|
inline |
Write a specified number of characters to the output stream.
The string will not be transcoded. The caller is responsible for making sure the buffer is flushed before calling this member function.
- Parameters
-
theBuffer | character buffer to write |
theBufferLength | number of characters to write |
Definition at line 191 of file XalanOutputStream.hpp.
◆ write() [6/6]
void XalanOutputStream::write |
( |
const XalanDOMChar * |
theBuffer, |
|
|
size_type |
theBufferLength |
|
) |
| |
Write a specified number of characters to the output stream.
The string will be transcoded, if an output encoding is specified.
- Parameters
-
theBuffer | character buffer to write |
theBufferLength | number of characters to write |
◆ writeData()
virtual void XalanOutputStream::writeData |
( |
const char * |
theBuffer, |
|
|
size_type |
theBufferLength |
|
) |
| |
|
protectedpure virtual |
◆ s_nlCRString
const XalanDOMChar XalanOutputStream::s_nlCRString[] |
|
staticprotected |
◆ s_nlCRStringLength
◆ s_nlString
const XalanDOMChar XalanOutputStream::s_nlString[] |
|
staticprotected |
◆ s_nlStringLength
The documentation for this class was generated from the following file: