|
Jive reference manual
|
#include <jem/io/PrintWriter.h>

Public Member Functions | |
| PrintWriter (const Ref< Writer > &out, idx_t bufsize=-1) | |
| PrintWriter (const Self &rhs) | |
| virtual Ref< Writer > | dup () |
| virtual void | close () |
| Closes this output stream. More... | |
| virtual void | flush () |
| Writes any buffered data to this output stream. More... | |
| virtual void | write (int c) |
| Writes a single character to this output stream. More... | |
| virtual void | write (int c, idx_t n) |
| virtual void | write (const char *buf, idx_t n) |
| virtual void | writeNoThrow (const char *buf, idx_t n) |
| void | flushBuffer () |
| virtual void | printBool (bool b) |
| Prints a formatted bool to this output stream. More... | |
| virtual void | printInt (lint i) |
| virtual void | printFloat (double d) |
| Prints a formatted double to this output stream. More... | |
| void | printLine () |
| void | printSpace () |
| void | printSpaces (idx_t count) |
| void | printBlankLine () |
| void | printBlankLines (idx_t count) |
| void | pushSettings () |
| void | popSettings () |
| int | incrIndentLevel () |
| int | decrIndentLevel () |
| void | setOptions (int options) |
| void | setPageWidth (int width) |
| void | setIndentWidth (int width) |
| int | getOptions () const |
| int | getPageWidth () const |
| int | getIndentWidth () const |
| int | getIndentLevel () const |
| int | getMarginWidth () const |
| lint | getLineNumber () const |
| lint | getColumnNumber () const |
| bool | atStartOfLine () const |
| template<class T > | |
| Self & | operator<< (const T &obj) |
| template<class T > | |
| PrintWriter & | operator<< (const T &obj) |
Public Member Functions inherited from jem::io::Writer | |
| virtual void | lock () |
| Locks this output stream. More... | |
| virtual void | unlock () |
| Unlocks this output stream. More... | |
| virtual int | poll () |
| Returns the number of characters that can be written without blocking. More... | |
| virtual void | write (int c, int n) |
| Writes multiple copies of a character to this output stream. More... | |
| virtual void | write (const char *buf, int n) |
| Writes an array of characters to this output stream. More... | |
| virtual void | writeNoThrow (const char *buf, int n) |
| Writes a character array without throwing an exception. More... | |
| virtual void | printByte (byte b) |
| Prints a formatted byte to this output stream. More... | |
| virtual void | printInt (long i) |
| Prints a formatted integer to this output stream. More... | |
Public Member Functions inherited from jem::Object | |
| virtual Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
| virtual String | toString () const |
| Returns a short textual description of this object. More... | |
| virtual long | hashValue () const |
| Returns a hash value for this object. More... | |
| virtual bool | equals (const Ref< Object > &obj) const |
| Tests whether two objects are equal. More... | |
| Ref< Object > | clone () const |
| Returns a copy of this object. More... | |
Public Attributes | |
| NumberFormat | nformat |
Static Public Attributes | |
| static const int | PAGE_WIDTH |
| static const int | INDENT_WIDTH |
| static const int | FLUSH_LINES |
| static const int | NO_WORD_WRAP |
| static const int | NUMERIC_BOOLS |
Protected Member Functions | |
| virtual | ~PrintWriter () |
Protected Member Functions inherited from jem::Collectable | |
| Collectable () | |
Creates an empty Collectable. More... | |
| ~Collectable () | |
| Frees resources. More... | |
Protected Member Functions inherited from jem::Interface | |
| virtual | ~Interface () |
| Empty destructor. More... | |
Friends | |
| class | Data_ |
Additional Inherited Members | |
Static Public Member Functions inherited from jem::Object | |
| static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
Related Functions inherited from jem::io::TextOutput | |
| TextOutput & | operator<< (TextOutput &out, bool b) |
| Prints a boolean to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, byte b) |
| Prints a byte to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, char c) |
| Prints a character to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, short i) |
| Prints a short integer to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, int i) |
| Prints an integer to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, long i) |
| Prints a long integer to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, float f) |
| Prints a float to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, double d) |
| Prints a double to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, const char *s) |
| Prints a string to a text output stream. More... | |
| TextOutput & | operator<< (TextOutput &out, TextOutput &(*manip)(TextOutput &)) |
| Applies a manipulator function to a text output stream. More... | |
| TextOutput & | endl (TextOutput &out) |
| Writes a newline to a text output stream. More... | |
| jem::io::PrintWriter::PrintWriter | ( | const Self & | rhs | ) |
|
protectedvirtual |
|
virtual |
Closes this output stream. After calling this function, one should not attempt to write any more characters to the stream.
The default implementation provided by the Writer class does nothing.
| IOException | - if an I/O error occurs. |
Reimplemented from jem::io::Writer.
|
virtual |
Writes any buffered characters to this output stream.
The default implementation provided by the Writer class does nothing.
| IOException | - if an I/O error occurs. |
Reimplemented from jem::io::Writer.
|
virtual |
Writes the integer c, cast to an unsigned char, to this output stream.
| c | - the character to be written. |
| IOException | - if an I/O error occurs. |
Implements jem::io::TextOutput.
|
virtual |
|
virtual |
|
virtual |
| void jem::io::PrintWriter::flushBuffer | ( | ) |
|
virtual |
Prints the bool b to this output stream in the following format:
"false" - if b is false; "true" - if b is true.| b | - the bool to be printed. |
| IOException | - if an I/O error occurs. |
Boolean::print(). Reimplemented from jem::io::Writer.
|
virtual |
|
virtual |
Prints the double d to this output stream.
| d | - the double to be printed. |
| IOException | - if an I/O error occurs. |
Float::print(). Reimplemented from jem::io::Writer.
| void jem::io::PrintWriter::printLine | ( | ) |
| void jem::io::PrintWriter::printSpace | ( | ) |
| void jem::io::PrintWriter::printSpaces | ( | idx_t | count | ) |
| void jem::io::PrintWriter::printBlankLine | ( | ) |
| void jem::io::PrintWriter::printBlankLines | ( | idx_t | count | ) |
| void jem::io::PrintWriter::pushSettings | ( | ) |
| void jem::io::PrintWriter::popSettings | ( | ) |
| int jem::io::PrintWriter::incrIndentLevel | ( | ) |
| int jem::io::PrintWriter::decrIndentLevel | ( | ) |
| void jem::io::PrintWriter::setOptions | ( | int | options | ) |
| void jem::io::PrintWriter::setPageWidth | ( | int | width | ) |
| void jem::io::PrintWriter::setIndentWidth | ( | int | width | ) |
| int jem::io::PrintWriter::getOptions | ( | ) | const |
| int jem::io::PrintWriter::getPageWidth | ( | ) | const |
| int jem::io::PrintWriter::getIndentWidth | ( | ) | const |
| int jem::io::PrintWriter::getIndentLevel | ( | ) | const |
| int jem::io::PrintWriter::getMarginWidth | ( | ) | const |
| lint jem::io::PrintWriter::getLineNumber | ( | ) | const |
| lint jem::io::PrintWriter::getColumnNumber | ( | ) | const |
| bool jem::io::PrintWriter::atStartOfLine | ( | ) | const |
| Self& jem::io::PrintWriter::operator<< | ( | const T & | obj | ) |
| PrintWriter& jem::io::PrintWriter::operator<< | ( | const T & | obj | ) |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
static |
| NumberFormat jem::io::PrintWriter::nformat |