RoboJDETM v2.0

java.io
Class PrintStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.PrintStream

public class PrintStream
extends FilterOutputStream

Implements a wrapper for output streams to provide string printing methods.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
PrintStream(OutputStream destinationStream)
          Constructs a PrintStream object for the specified stream.
 
Method Summary
 boolean checkError()
          Returns the value of error.
 void print(char[] chars)
          Prints the specified character array to the stream.
 void print(int i)
          Prints a string representation of the specified integer to the stream.
 void print(Object o)
          Prints a string representation of the specified object to the stream.
 void print(String s)
          Prints the specified string to the stream.
 void println()
          Prints a new line to the stream.
 void println(char[] chars)
          Prints the specified character array to the stream followed by a new line character.
 void println(int i)
          Prints a string representation of the specified integer to the stream.
 void println(Object o)
          Prints a string representation of the specified object to the stream follow by a new line.
 void println(String s)
          Prints the specified string to the stream followed by a new line character.
protected  void setError()
          Sets error to true.
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

PrintStream

public PrintStream(OutputStream destinationStream)
Constructs a PrintStream object for the specified stream.

Parameters:
destinationStream - stream to print to
Method Detail

checkError

public boolean checkError()
Returns the value of error.

Returns:
value of error

print

public void print(char[] chars)
Prints the specified character array to the stream.

Parameters:
chars - character array

print

public void print(int i)
Prints a string representation of the specified integer to the stream.

Parameters:
i - integer value

print

public void print(Object o)
Prints a string representation of the specified object to the stream.

Prints "null" if the reference is null.

Parameters:
o - object

print

public void print(String s)
Prints the specified string to the stream.

Parameters:
s - string

println

public void println()
Prints a new line to the stream.


println

public void println(char[] chars)
Prints the specified character array to the stream followed by a new line character.

Parameters:
chars - character array

println

public void println(int i)
Prints a string representation of the specified integer to the stream.

Parameters:
i - integer value

println

public void println(Object o)
Prints a string representation of the specified object to the stream follow by a new line.

Prints "null" if the reference is null.

Parameters:
o - object

println

public void println(String s)
Prints the specified string to the stream followed by a new line character.

Parameters:
s - string

setError

protected void setError()
Sets error to true.


RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com