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

#include <xalanc/PlatformSupport/XalanOutputStreamPrintWriter.hpp>

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

Public Member Functions

 XalanOutputStreamPrintWriter (XalanOutputStream &theOutputStream, bool fAutoFlush=false)
 Construct a XalanOutputStreamPrintWriter instance. More...
 
virtual ~XalanOutputStreamPrintWriter ()
 
virtual bool checkError () const
 Flush the stream, then check the error status. More...
 
virtual void close ()
 Close the stream. More...
 
virtual void flush ()
 Flush the stream. More...
 
virtual XalanOutputStreamgetStream ()
 Get the stream associated with the writer... More...
 
virtual const XalanOutputStreamgetStream () const
 Get the stream associated with the writer... More...
 
virtual void write (const char *s, size_t theOffset=0, size_t theLength=npos)
 Writes a string. More...
 
virtual void write (const XalanDOMChar *s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Writes a string. More...
 
virtual void write (XalanDOMChar c)
 Writes a character. More...
 
virtual void write (const XalanDOMString &s, XalanDOMString::size_type theOffset=0, XalanDOMString::size_type theLength=XalanDOMString::npos)
 Writes a string. More...
 
virtual void print (bool b)
 
virtual void print (char c)
 
virtual void print (const char *s, size_t theLength=npos)
 
virtual void print (const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
 
virtual void print (double d)
 
virtual void print (XMLInt32 i)
 
virtual void print (XMLInt64 l)
 
virtual void print (const XalanDOMString &s)
 
virtual void println ()
 
virtual void println (bool x)
 
virtual void println (char x)
 
virtual void println (const char *s, size_t theLength=npos)
 
virtual void println (const XalanDOMChar *s, XalanDOMString::size_type theLength=XalanDOMString::npos)
 
virtual void println (double x)
 
virtual void println (XMLInt32 x)
 
virtual void println (XMLInt64 x)
 
virtual void println (const XalanDOMString &s)
 
- Public Member Functions inherited from xalanc::PrintWriter
 PrintWriter (bool fAutoFlush=false, MemoryManager &theManager XALAN_DEFAULT_MEMMGR)
 Constructor. More...
 
MemoryManager & getMemoryManager ()
 
virtual ~PrintWriter ()
 
- Public Member Functions inherited from xalanc::Writer
 Writer ()
 
virtual ~Writer ()
 

Static Public Member Functions

static XalanOutputStreamPrintWritercreate (XalanOutputStream &theOutputStream, bool fAutoFlush=false)
 

Additional Inherited Members

- Static Public Attributes inherited from xalanc::Writer
static const size_t npos
 
- Protected Attributes inherited from xalanc::PrintWriter
const bool m_fAutoFlush
 
MemoryManager & m_memoryManager
 
- Static Protected Attributes inherited from xalanc::PrintWriter
static const XalanDOMChar s_trueString []
 
static const XalanDOMChar s_falseString []
 
static const XalanDOMChar s_newlineString []
 

Detailed Description

Definition at line 44 of file XalanOutputStreamPrintWriter.hpp.

Constructor & Destructor Documentation

◆ XalanOutputStreamPrintWriter()

xalanc::XalanOutputStreamPrintWriter::XalanOutputStreamPrintWriter ( XalanOutputStream theOutputStream,
bool  fAutoFlush = false 
)

Construct a XalanOutputStreamPrintWriter instance.

Parameters
theOutputStreamoutput stream to write
fAutoFlushif true, the output will not be buffered

◆ ~XalanOutputStreamPrintWriter()

virtual xalanc::XalanOutputStreamPrintWriter::~XalanOutputStreamPrintWriter ( )
virtual

Member Function Documentation

◆ checkError()

virtual bool xalanc::XalanOutputStreamPrintWriter::checkError ( ) const
virtual

Flush the stream, then check the error status.

Returns
true if no errors

Implements xalanc::PrintWriter.

◆ close()

virtual void xalanc::XalanOutputStreamPrintWriter::close ( )
virtual

Close the stream.

Implements xalanc::PrintWriter.

◆ create()

static XalanOutputStreamPrintWriter* xalanc::XalanOutputStreamPrintWriter::create ( XalanOutputStream theOutputStream,
bool  fAutoFlush = false 
)
static

◆ flush()

virtual void xalanc::XalanOutputStreamPrintWriter::flush ( )
virtual

Flush the stream.

Implements xalanc::PrintWriter.

◆ getStream() [1/2]

virtual XalanOutputStream* xalanc::XalanOutputStreamPrintWriter::getStream ( )
virtual

Get the stream associated with the writer...

Reimplemented from xalanc::Writer.

◆ getStream() [2/2]

virtual const XalanOutputStream* xalanc::XalanOutputStreamPrintWriter::getStream ( ) const
virtual

Get the stream associated with the writer...

Reimplemented from xalanc::Writer.

◆ print() [1/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( bool  b)
virtual

Implements xalanc::PrintWriter.

◆ print() [2/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( char  c)
virtual

Implements xalanc::PrintWriter.

◆ print() [3/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( const char *  s,
size_t  theLength = npos 
)
virtual

Implements xalanc::PrintWriter.

◆ print() [4/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( const XalanDOMChar *  s,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Implements xalanc::PrintWriter.

◆ print() [5/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( const XalanDOMString s)
virtual

Implements xalanc::PrintWriter.

◆ print() [6/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( double  d)
virtual

Implements xalanc::PrintWriter.

◆ print() [7/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( XMLInt32  i)
virtual

Implements xalanc::PrintWriter.

◆ print() [8/8]

virtual void xalanc::XalanOutputStreamPrintWriter::print ( XMLInt64  l)
virtual

Implements xalanc::PrintWriter.

◆ println() [1/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( )
virtual

Implements xalanc::PrintWriter.

◆ println() [2/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( bool  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [3/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( char  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [4/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( const char *  s,
size_t  theLength = npos 
)
virtual

Implements xalanc::PrintWriter.

◆ println() [5/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( const XalanDOMChar *  s,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Implements xalanc::PrintWriter.

◆ println() [6/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( const XalanDOMString s)
virtual

Implements xalanc::PrintWriter.

◆ println() [7/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( double  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [8/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( XMLInt32  x)
virtual

Implements xalanc::PrintWriter.

◆ println() [9/9]

virtual void xalanc::XalanOutputStreamPrintWriter::println ( XMLInt64  x)
virtual

Implements xalanc::PrintWriter.

◆ write() [1/4]

virtual void xalanc::XalanOutputStreamPrintWriter::write ( const char *  s,
size_t  theOffset = 0,
size_t  theLength = npos 
)
virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is npos, then the array is assumed to be null-terminated.

Implements xalanc::PrintWriter.

◆ write() [2/4]

virtual void xalanc::XalanOutputStreamPrintWriter::write ( const XalanDOMChar *  s,
XalanDOMString::size_type  theOffset = 0,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is XalanDOMString::npos, then the array is assumed to be null-terminated.

Implements xalanc::PrintWriter.

◆ write() [3/4]

virtual void xalanc::XalanOutputStreamPrintWriter::write ( const XalanDOMString s,
XalanDOMString::size_type  theOffset = 0,
XalanDOMString::size_type  theLength = XalanDOMString::npos 
)
virtual

Writes a string.

Parameters
sstring to write
theOffsetstarting offset in string to begin writing, default 0
theLengthnumber of characters to write. If the length is XalanDOMString::npos, then the entire string is printed.

Implements xalanc::PrintWriter.

◆ write() [4/4]

virtual void xalanc::XalanOutputStreamPrintWriter::write ( XalanDOMChar  c)
virtual

Writes a character.

Parameters
ccharacter to write

Implements xalanc::PrintWriter.


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