|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.util.XPSystem.Out
public static class XPSystem.Out
The "standard" 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.
Constructor Summary | |
---|---|
XPSystem.Out()
|
Method Summary | |
---|---|
static XPWriter |
GetWriter()
GetWriter() exposes System.out as a wrapper around Writer to match .NET, in which Console.out is 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 a long 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.Out()
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 printedpublic 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 printedpublic 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 printedpublic 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 printedpublic 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 printedpublic 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(long)
and then
#println()
.
l
- a The long
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 XPWriter GetWriter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |