|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.util.XPSystem.Error
public static class XPSystem.Error
The "standard" error output stream. This stream is already open and ready to accept output data.
Typically this stream corresponds to display output or another
output destination specified by the host environment or user. By
convention, this output stream is used to display error messages
or other information that should come to the immediate attention
of a user even if the principal output stream, the value of the
variable out
, has been redirected to a file or other
destination that is typically not continuously monitored.
Constructor Summary | |
---|---|
XPSystem.Error()
|
Method Summary | |
---|---|
static void |
Flush()
Flush the stream. |
static XPWriter |
GetWriter()
GetWriter() exposes System.err as a wrapper around Writer to match the .NET platform, which provides Console.Error as a TextWriter. |
static void |
Write(boolean b)
Print a boolean value. |
static void |
Write(char c)
Print a character. |
static void |
Write(char[] c)
Print an array of characters. |
static void |
Write(double d)
Print a double-precision floating-point number. |
static void |
Write(float f)
Print a floating-point number. |
static void |
Write(int i)
Print an integer. |
static void |
Write(long l)
Print a long integer. |
static void |
Write(java.lang.Object obj)
Print an object. |
static void |
Write(java.lang.String s)
Print a string. |
static void |
WriteLine(boolean b)
Print a boolean and then terminate the line. |
static void |
WriteLine(char c)
Print a character and then terminate the line. |
static void |
WriteLine(char[] c)
Print an array of characters and then terminate the line. |
static void |
WriteLine(double d)
Print a double and then terminate the line. |
static void |
WriteLine(float f)
Print a float and then terminate the line. |
static void |
WriteLine(int i)
Print an integer and then terminate the line. |
static void |
WriteLine(long l)
Print an integer and then terminate the line. |
static void |
WriteLine(java.lang.Object obj)
Print an Object and then terminate the line. |
static void |
WriteLine(java.lang.String s)
Print a String and then terminate the line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPSystem.Error()
Method Detail |
---|
public static void Write(boolean b)
String.valueOf(boolean)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
#write(int)
method.
b
- The boolean
to be printedpublic static void Write(char c)
#write(int)
method.
c
- The char
to be printedpublic static void Write(char[] c)
#write(int)
method.
c
- The array of chars to be printed
java.lang.NullPointerException
- If s
is null
public static void Write(double d)
String.valueOf(double)
is translated into
bytes according to the platform's default character encoding, and these
bytes are written in exactly the manner of the #write(int)
method.
d
- The double
to be printedDouble.toString(double)
public static void Write(float f)
String.valueOf(float)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
#write(int)
method.
f
- The float
to be printedFloat.toString(float)
public static void Write(int i)
String.valueOf(int)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
#write(int)
method.
i
- The int
to be printedInteger.toString(int)
public static void Write(long l)
String.valueOf(long)
is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
#write(int)
method.
l
- The long
to be printedLong.toString(long)
public static void Write(java.lang.Object obj)
String.valueOf(Object)
method is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the
#write(int)
method.
obj
- The Object
to be printedObject.toString()
public static void Write(java.lang.String s)
null
then the string
"null"
is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
#write(int)
method.
s
- The String
to be printedpublic static void WriteLine(boolean b)
#print(boolean)
and then
#println()
.
b
- The boolean
to be printedpublic static void WriteLine(char c)
#print(char)
and then
#println()
.
c
- The char
to be printed.public static void WriteLine(char[] c)
#print(char[])
and
then #println()
.
c
- an array of chars to print.public static void WriteLine(double d)
#print(double)
and then
#println()
.
d
- The double
to be printed.public static void WriteLine(float f)
#print(float)
and then
#println()
.
f
- The float
to be printed.public static void WriteLine(int i)
#print(int)
and then
#println()
.
i
- The int
to be printed.public static void WriteLine(long l)
#print(int)
and then
#println()
.
l
- The int
to be printed.public static void WriteLine(java.lang.Object obj)
#print(Object)
and then
#println()
.
obj
- The Object
to be printed.public static void WriteLine(java.lang.String s)
#print(String)
and then
#println()
.
s
- The String
to be printed.public static void Flush()
public static XPWriter GetWriter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |