aicas logo Jamaica 3.4 release 8

com.aicas.jamaica.util
Class NullPrintStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.PrintStream
              extended by com.aicas.jamaica.util.NullPrintStream
All Implemented Interfaces:
Closeable, Flushable

public final class NullPrintStream
extends PrintStream


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

NullPrintStream

public NullPrintStream()
Method Detail

checkError

public boolean checkError()
Description copied from class: PrintStream
This method checks to see if an error has occurred on this stream. Note that once an error has occurred, this method will continue to report true forever for this stream. Before checking for an error condition, this method flushes the stream.

Overrides:
checkError in class PrintStream
Returns:
true if an error has occurred, false otherwise

close

public void close()
Description copied from class: PrintStream
This method closes this stream and all underlying streams.

Specified by:
close in interface Closeable
Overrides:
close in class PrintStream

flush

public void flush()
Description copied from class: PrintStream
This method flushes any buffered bytes to the underlying stream and then flushes that stream as well.

Specified by:
flush in interface Flushable
Overrides:
flush in class PrintStream

print

public void print(boolean bool)
Description copied from class: PrintStream
This methods prints a boolean value to the stream. true values are printed as "true" and false values are printed as "false".

Overrides:
print in class PrintStream
Parameters:
bool - The boolean value to print

print

public void print(char ch)
Description copied from class: PrintStream
This method prints a char to the stream. The actual value printed is determined by the character encoding in use.

Overrides:
print in class PrintStream
Parameters:
ch - The char value to be printed

print

public void print(char[] charArray)
Description copied from class: PrintStream
This method prints an array of characters to the stream. The actual value printed depends on the system default encoding.

Overrides:
print in class PrintStream
Parameters:
charArray - The array of characters to print.

print

public void print(double dnum)
Description copied from class: PrintStream
This method prints a double to the stream. The value printed is determined using the String.valueOf() method.

Overrides:
print in class PrintStream
Parameters:
dnum - The double value to be printed

print

public void print(float fnum)
Description copied from class: PrintStream
This method prints a float to the stream. The value printed is determined using the String.valueOf() method.

Overrides:
print in class PrintStream
Parameters:
fnum - The float value to be printed

print

public void print(int inum)
Description copied from class: PrintStream
This method prints an integer to the stream. The value printed is determined using the String.valueOf() method.

Overrides:
print in class PrintStream
Parameters:
inum - The int value to be printed

print

public void print(long lnum)
Description copied from class: PrintStream
This method prints a long to the stream. The value printed is determined using the String.valueOf() method.

Overrides:
print in class PrintStream
Parameters:
lnum - The long value to be printed

print

public void print(Object obj)
Description copied from class: PrintStream
This method prints an Object to the stream. The actual value printed is determined by calling the String.valueOf() method.

Overrides:
print in class PrintStream
Parameters:
obj - The Object to print.

print

public void print(String str)
Description copied from class: PrintStream
This method prints a String to the stream. The actual value printed depends on the system default encoding.

Overrides:
print in class PrintStream
Parameters:
str - The String to print.

println

public void println()
Description copied from class: PrintStream
This method prints a line separator sequence to the stream. The value printed is determined by the system property line.separator and is not necessarily the Unix '\n' newline character.

Overrides:
println in class PrintStream

println

public void println(boolean bool)
Description copied from class: PrintStream
This methods prints a boolean value to the stream. true values are printed as "true" and false values are printed as "false".

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
bool - The boolean value to print

println

public void println(char ch)
Description copied from class: PrintStream
This method prints a char to the stream. The actual value printed is determined by the character encoding in use.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
ch - The char value to be printed

println

public void println(char[] charArray)
Description copied from class: PrintStream
This method prints an array of characters to the stream. The actual value printed depends on the system default encoding.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
charArray - The array of characters to print.

println

public void println(double dnum)
Description copied from class: PrintStream
This method prints a double to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
dnum - The double value to be printed

println

public void println(float fnum)
Description copied from class: PrintStream
This method prints a float to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
fnum - The float value to be printed

println

public void println(int inum)
Description copied from class: PrintStream
This method prints an integer to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
inum - The int value to be printed

println

public void println(long lnum)
Description copied from class: PrintStream
This method prints a long to the stream. The value printed is determined using the String.valueOf() method.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
lnum - The long value to be printed

println

public void println(Object obj)
Description copied from class: PrintStream
This method prints an Object 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.

Overrides:
println in class PrintStream
Parameters:
obj - The Object to print.

println

public void println(String str)
Description copied from class: PrintStream
This method prints a String to the stream. The actual value printed depends on the system default encoding.

This method prints a line termination sequence after printing the value.

Overrides:
println in class PrintStream
Parameters:
str - The String to print.

write

public void write(byte[] buffer,
                  int offset,
                  int len)
Description copied from class: PrintStream
This method writes len bytes from the specified array starting at index offset into the array.

Overrides:
write in class PrintStream
Parameters:
buffer - The array of bytes to write
offset - The index into the array to start writing from
len - The number of bytes to write

write

public void write(int oneByte)
Description copied from class: PrintStream
This method writes a byte of data to the stream. If auto-flush is enabled, printing a newline character will cause the stream to be flushed after the character is written.

Overrides:
write in class PrintStream
Parameters:
oneByte - The byte to be written

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.