|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
com.aicas.jamaica.util.NullPrintStream
public final class NullPrintStream
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
NullPrintStream()
|
|
| Method Summary | |
|---|---|
boolean |
checkError()
This method checks to see if an error has occurred on this stream. |
void |
close()
This method closes this stream and all underlying streams. |
void |
flush()
This method flushes any buffered bytes to the underlying stream and then flushes that stream as well. |
void |
print(boolean bool)
This methods prints a boolean value to the stream. |
void |
print(char ch)
This method prints a char to the stream. |
void |
print(char[] charArray)
This method prints an array of characters to the stream. |
void |
print(double dnum)
This method prints a double to the stream. |
void |
print(float fnum)
This method prints a float to the stream. |
void |
print(int inum)
This method prints an integer to the stream. |
void |
print(long lnum)
This method prints a long to the stream. |
void |
print(Object obj)
This method prints an Object to the stream. |
void |
print(String str)
This method prints a String to the stream. |
void |
println()
This method prints a line separator sequence to the stream. |
void |
println(boolean bool)
This methods prints a boolean value to the stream. |
void |
println(char ch)
This method prints a char to the stream. |
void |
println(char[] charArray)
This method prints an array of characters to the stream. |
void |
println(double dnum)
This method prints a double to the stream. |
void |
println(float fnum)
This method prints a float to the stream. |
void |
println(int inum)
This method prints an integer to the stream. |
void |
println(long lnum)
This method prints a long to the stream. |
void |
println(Object obj)
This method prints an Object to the stream. |
void |
println(String str)
This method prints a String to the stream. |
void |
write(byte[] buffer,
int offset,
int len)
This method writes len bytes from the specified array
starting at index offset into the array. |
void |
write(int oneByte)
This method writes a byte of data to the stream. |
| Methods inherited from class java.io.PrintStream |
|---|
format, format, setError |
| Methods inherited from class java.io.FilterOutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullPrintStream()
| Method Detail |
|---|
public boolean checkError()
PrintStreamtrue forever for this stream. Before checking for an
error condition, this method flushes the stream.
checkError in class PrintStreamtrue if an error has occurred,
false otherwisepublic void close()
PrintStream
close in interface Closeableclose in class PrintStreampublic void flush()
PrintStream
flush in interface Flushableflush in class PrintStreampublic void print(boolean bool)
PrintStreamtrue
values are printed as "true" and false values are printed
as "false".
print in class PrintStreambool - The boolean value to printpublic void print(char ch)
PrintStream
print in class PrintStreamch - The char value to be printedpublic void print(char[] charArray)
PrintStream
print in class PrintStreamcharArray - The array of characters to print.public void print(double dnum)
PrintStreamString.valueOf() method.
print in class PrintStreamdnum - The double value to be printedpublic void print(float fnum)
PrintStreamString.valueOf() method.
print in class PrintStreamfnum - The float value to be printedpublic void print(int inum)
PrintStreamString.valueOf() method.
print in class PrintStreaminum - The int value to be printedpublic void print(long lnum)
PrintStreamString.valueOf() method.
print in class PrintStreamlnum - The long value to be printedpublic void print(Object obj)
PrintStreamObject to the stream. The actual
value printed is determined by calling the String.valueOf()
method.
print in class PrintStreamobj - The Object to print.public void print(String str)
PrintStreamString to the stream. The actual
value printed depends on the system default encoding.
print in class PrintStreamstr - The String to print.public void println()
PrintStream
println in class PrintStreampublic void println(boolean bool)
PrintStreamtrue
values are printed as "true" and false values are printed
as "false".
This method prints a line termination sequence after printing the value.
println in class PrintStreambool - The boolean value to printpublic void println(char ch)
PrintStreamThis method prints a line termination sequence after printing the value.
println in class PrintStreamch - The char value to be printedpublic void println(char[] charArray)
PrintStreamThis method prints a line termination sequence after printing the value.
println in class PrintStreamcharArray - The array of characters to print.public void println(double dnum)
PrintStreamString.valueOf() method.
This method prints a line termination sequence after printing the value.
println in class PrintStreamdnum - The double value to be printedpublic void println(float fnum)
PrintStreamString.valueOf() method.
This method prints a line termination sequence after printing the value.
println in class PrintStreamfnum - The float value to be printedpublic void println(int inum)
PrintStreamString.valueOf() method.
This method prints a line termination sequence after printing the value.
println in class PrintStreaminum - The int value to be printedpublic void println(long lnum)
PrintStreamString.valueOf() method.
This method prints a line termination sequence after printing the value.
println in class PrintStreamlnum - The long value to be printedpublic void println(Object obj)
PrintStreamObject to the stream. The actual
value printed is determined by calling the String.valueOf()
method.
This method prints a line termination sequence after printing the value.
println in class PrintStreamobj - The Object to print.public void println(String str)
PrintStreamString to the stream. The actual
value printed depends on the system default encoding.
This method prints a line termination sequence after printing the value.
println in class PrintStreamstr - The String to print.
public void write(byte[] buffer,
int offset,
int len)
PrintStreamlen bytes from the specified array
starting at index offset into the array.
write in class PrintStreambuffer - The array of bytes to writeoffset - The index into the array to start writing fromlen - The number of bytes to writepublic void write(int oneByte)
PrintStream
write in class PrintStreamoneByte - The byte to be written
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||