2005/5/9

     
 

class PrintWriter

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::PrintWriter Class Reference

#include <PrintWriter.h>

Inheritance diagram for acdk::io::PrintWriter:

acdk::io::AbstractCharFilterWriter acdk::io::AbstractCharWriter acdk::lang::Object acdk::io::CharWriter acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

PrintWriter provides formated character output.

API: ACDK<br/>

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.29
Date:
Date
2005/04/09 19:26:45


Public Member Functions

 PrintWriter (IN(RWriter) out, IN(acdk::locale::REncoder) encoder=Nil, IN(acdk::lang::Object) lock=Nil)
 PrintWriter (IN(RCharWriter) out)
virtual void flush ()
 implements form Writer

virtual void close ()
 implements form CharWriter

virtual void print (bool c)
virtual void print (char c)
virtual void print (ucchar c)
virtual void print (byte c)
virtual void print (short c)
virtual void print (int c)
virtual void print (jlong c)
virtual void print (long c)
virtual void print (float c)
virtual void print (double c)
virtual void print (IN(acdk::lang::Object) c)
virtual void print (IN(RString) str)
virtual void print (const String &str)
virtual void print (const char *str)
virtual void println ()
virtual void println (bool c)
virtual void println (char c)
virtual void println (ucchar c)
virtual void println (byte c)
virtual void println (short c)
virtual void println (int c)
virtual void println (long c)
virtual void println (jlong c)
virtual void println (float c)
virtual void println (double c)
virtual void println (IN(acdk::lang::Object) c)
virtual void println (IN(RString) str)
virtual void println (const String &str)
virtual void println (const char *str)
RPrintWriter operator_lt_lt (bool c)
 used for dmi

RPrintWriter operator_lt_lt (char c)
RPrintWriter operator_lt_lt (ucchar c)
RPrintWriter operator_lt_lt (byte c)
RPrintWriter operator_lt_lt (short c)
RPrintWriter operator_lt_lt (int c)
RPrintWriter operator_lt_lt (jlong c)
RPrintWriter operator_lt_lt (float c)
RPrintWriter operator_lt_lt (double c)
RPrintWriter operator_lt_lt (IN(acdk::lang::Object) c)
RPrintWriter operator_lt_lt (IN(RString) c)
virtual void printQuoted (IN(RString) str)
 print C quote string
    Text = 'a string is a string
            next line.
    // will be 
    text = 'a string is a "string"
next line.'


bool getFlushOnNewLine () const
 should on println flush the underlying stream.

void setFlushOnNewLine (bool doflush)

Static Public Member Functions

acdk::lang::Object create_instance ()

Protected Member Functions

 PrintWriter ()

Protected Attributes

bool _flushOnNewLine


Constructor & Destructor Documentation

acdk::io::PrintWriter::PrintWriter  )  [protected]
 

acdk::io::PrintWriter::PrintWriter IN(RWriter out,
IN(acdk::locale::REncoder encoder = Nil,
IN(acdk::lang::Object lock = Nil
 

acdk::io::PrintWriter::PrintWriter IN(RCharWriter out  ) 
 


Member Function Documentation

virtual void acdk::io::PrintWriter::close  )  [inline, virtual]
 

implements form CharWriter

Reimplemented from acdk::io::AbstractCharFilterWriter.

acdk::lang::Object acdk::io::PrintWriter::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

virtual void acdk::io::PrintWriter::flush  )  [inline, virtual]
 

implements form Writer

Reimplemented from acdk::io::AbstractCharFilterWriter.

bool acdk::io::PrintWriter::getFlushOnNewLine  )  const [inline]
 

should on println flush the underlying stream.

by default (after construction) this is true for performance reason this may changed to false

RPrintWriter acdk::io::PrintWriter::operator_lt_lt IN(RString c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt IN(acdk::lang::Object c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt double  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt float  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt jlong  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt int  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt short  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt byte  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt ucchar  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt char  c  )  [inline]
 

RPrintWriter acdk::io::PrintWriter::operator_lt_lt bool  c  )  [inline]
 

used for dmi

virtual void acdk::io::PrintWriter::print const char *  str  )  [virtual]
 

virtual void acdk::io::PrintWriter::print const String str  )  [virtual]
 

virtual void acdk::io::PrintWriter::print IN(RString str  )  [virtual]
 

virtual void acdk::io::PrintWriter::print IN(acdk::lang::Object c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print double  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print float  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print long  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print jlong  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print int  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print short  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print byte  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print ucchar  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print char  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::print bool  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println const char *  str  )  [virtual]
 

virtual void acdk::io::PrintWriter::println const String str  )  [virtual]
 

virtual void acdk::io::PrintWriter::println IN(RString str  )  [virtual]
 

virtual void acdk::io::PrintWriter::println IN(acdk::lang::Object c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println double  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println float  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println jlong  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println long  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println int  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println short  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println byte  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println ucchar  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println char  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println bool  c  )  [virtual]
 

virtual void acdk::io::PrintWriter::println  )  [virtual]
 

virtual void acdk::io::PrintWriter::printQuoted IN(RString str  )  [virtual]
 

print C quote string

    Text = 'a string is a string
            next line.
    // will be 
    text = 'a string is a "string"
next line.'

See also:
InputReader::readQuoted

void acdk::io::PrintWriter::setFlushOnNewLine bool  doflush  )  [inline]
 


Member Data Documentation

bool acdk::io::PrintWriter::_flushOnNewLine [protected]