#include <jem/io/NullWriter.h>
|
| NullWriter () |
|
virtual Ref< Writer > | dup () |
|
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) |
|
virtual void | printByte (byte b) |
| Prints a formatted byte to this output stream. More...
|
|
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...
|
|
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 | close () |
| Closes this output stream. More...
|
|
virtual void | flush () |
| Writes any buffered data to this output stream. 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 | printInt (long i) |
| Prints a formatted integer to this output stream. More...
|
|
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...
|
|
|
static Class * | getType () |
| Returns the Class instance representing the Object class. More...
|
|
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::NullWriter::NullWriter |
( |
| ) |
|
virtual jem::io::NullWriter::~NullWriter |
( |
| ) |
|
|
protectedvirtual |
virtual Ref<Writer> jem::io::NullWriter::dup |
( |
| ) |
|
|
virtual |
virtual void jem::io::NullWriter::write |
( |
int |
c | ) |
|
|
virtual |
Writes the integer c, cast to an unsigned char
, to this output stream.
- Parameters
-
c | - the character to be written. |
- Exceptions
-
Implements jem::io::TextOutput.
virtual void jem::io::NullWriter::write |
( |
int |
c, |
|
|
idx_t |
n |
|
) |
| |
|
virtual |
virtual void jem::io::NullWriter::write |
( |
const char * |
buf, |
|
|
idx_t |
n |
|
) |
| |
|
virtual |
virtual void jem::io::NullWriter::writeNoThrow |
( |
const char * |
buf, |
|
|
idx_t |
n |
|
) |
| |
|
virtual |
virtual void jem::io::NullWriter::printByte |
( |
byte |
b | ) |
|
|
virtual |
Prints the byte b as a hexadecimal number to this output stream.
- Parameters
-
b | - the byte to be printed. |
- Exceptions
-
- See also
Integer::print()
.
Reimplemented from jem::io::Writer.
virtual void jem::io::NullWriter::printBool |
( |
bool |
b | ) |
|
|
virtual |
Prints the bool b to this output stream in the following format:
"false"
- if b is false
;
"true"
- if b is true
.
- Parameters
-
b | - the bool to be printed. |
- Exceptions
-
- See also
Boolean::print()
.
Reimplemented from jem::io::Writer.
virtual void jem::io::NullWriter::printInt |
( |
lint |
i | ) |
|
|
virtual |
virtual void jem::io::NullWriter::printFloat |
( |
double |
d | ) |
|
|
virtual |
Prints the double d to this output stream.
- Parameters
-
d | - the double to be printed. |
- Exceptions
-
- See also
Float::print()
.
Reimplemented from jem::io::Writer.