PrintStream adds functionality to another output stream, namely the ability to print representations of various data values conveniently.
More...
#include <java_io_PrintStream.h>
Inheritance diagram for java::io::PrintStream:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::java::io::PrintStream > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::io::PrintStream > > | array2D |
Public Member Functions | |
| virtual bool | checkError (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Flush the stream and check its error state. | |
| virtual void | close (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Close the stream. | |
| virtual void | flush (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Flush the stream. | |
| virtual void | print (const ::xmog_java_char_array &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print an array of characters. | |
| virtual void | print (const ::java::lang::Object &obj,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print an object. | |
| virtual void | print (const ::java::lang::String &s,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a string. | |
| virtual void | print (jdouble d,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a double-precision floating-point number. | |
| virtual void | print (jfloat f,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a floating-point number. | |
| virtual void | print (jlong l,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a long integer. | |
| virtual void | print (jchar c,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a character. | |
| virtual void | print (bool b,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a boolean value. | |
| virtual void | print (jint i,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print an integer. | |
| virtual void | println (const ::xmog_java_char_array &x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print an array of characters and then terminate the line. | |
| virtual void | println (const ::java::lang::String &x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a String and then terminate the line. | |
| virtual void | println (const ::java::lang::Object &x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print an Object and then terminate the line. | |
| virtual void | println (jdouble x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a double and then terminate the line. | |
| virtual void | println (jfloat x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a float and then terminate the line. | |
| virtual void | println (jchar x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a character and then terminate the line. | |
| virtual void | println (jlong x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a long and then terminate the line. | |
| virtual void | println (jint x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print an integer and then terminate the line. | |
| virtual void | println (bool x,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Print a boolean and then terminate the line. | |
| virtual void | println (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Terminate the current line by writing the line separator string. | |
| PrintStream (const ::java::io::OutputStream &out, bool autoFlush, const ::java::lang::String &encoding,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
| Create a new print stream. | |
| PrintStream (const ::java::io::OutputStream &out, bool autoFlush,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
| Create a new print stream. | |
| PrintStream (const ::java::io::OutputStream &out,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
| Create a new print stream. | |
| virtual void | write (const ::xmog_java_byte_array &buf, jint off, jint len,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Write len bytes from the specified byte array starting at offset off to this stream. | |
| virtual void | write (jint b,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Write the specified byte to this stream. | |
PrintStream adds functionality to another output stream, namely the ability to print representations of various data values conveniently.
Two other features are provided as well. Unlike other output streams, a PrintStream never throws an IOException; instead, exceptional situations merely set an internal flag that can be tested via the checkError method. Optionally, a PrintStream can be created so as to flush automatically; this means that the flush method is automatically invoked after a byte array is written, one of the println methods is invoked, or a newline character or byte (') is written.
'
All characters printed by a PrintStream are converted into bytes using the platform's default character encoding. The class should be used in situations that require writing characters rather than bytes.
Mark Reinhold
|
||||||||||||||||
|
Create a new print stream. This stream will not flush automatically.
|
|
||||||||||||||||||||
|
Create a new print stream.
|
|
||||||||||||||||||||||||
|
Create a new print stream.
|
|
||||||||||||
|
Flush the stream and check its error state.
The internal error state is set to
Thread.currentThread().interrupt(); or the equivalent.
|
|
||||||||||||
|
Close the stream. This is done by flushing the stream and then closing the underlying output stream.
Reimplemented from java::io::FilterOutputStream. |
|
||||||||||||
|
Flush the stream. This is done by writing any buffered output bytes to the underlying output stream and then flushing that stream.
Reimplemented from java::io::FilterOutputStream. |
|
||||||||||||||||
|
||||||||||||||||
|
Print an object.
The string produced by the
|
|
||||||||||||||||
|
Print a string.
If the argument is
|
|
||||||||||||||||
|
Print a double-precision floating-point number.
The string produced by
|
|
||||||||||||||||
|
Print a floating-point number.
The string produced by
|
|
||||||||||||||||
|
Print a long integer.
The string produced by
|
|
||||||||||||||||
|
Print a character.
The character is translated into one or more bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the
|
|
||||||||||||||||
|
Print a boolean value.
The string produced by
|
|
||||||||||||||||
|
Print an integer.
The string produced by
|
|
||||||||||||||||
|
Print an array of characters and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print a String and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print an Object and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print a double and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print a float and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print a character and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print a long and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print an integer and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||||||
|
Print a boolean and then terminate the line.
This method behaves as though it invokes
|
|
||||||||||||
|
Terminate the current line by writing the line separator string.
The line separator string is defined by the system property
|
|
||||||||||||||||||||||||
|
Write
If automatic flushing is enabled then the
Note that the bytes will be written as given; to write characters that will be translated according to the platform's default character encoding, use the
Reimplemented from java::io::FilterOutputStream. |
|
||||||||||||||||
|
Write the specified byte to this stream.
If the byte is a newline and automatic flushing is enabled then the
Note that the byte is written as given; to write a character that will be translated according to the platform's default character encoding, use the
Reimplemented from java::io::FilterOutputStream. |
1.4.1