All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
Direct Known Subclasses:
LogStream

  • Field Summary

  • Constructor Summary

    Constructors

    Creates a new print stream, without automatic line flushing, with the specified file.

    Creates a new print stream, without automatic line flushing, with the specified file and charset.

    Creates a new print stream, without automatic line flushing, with the specified file and charset.

    Creates a new print stream, without automatic line flushing, with the specified OutputStream.

    Creates a new print stream, with the specified OutputStream and line flushing.

    Creates a new print stream, with the specified OutputStream, line flushing, and character encoding.

    Creates a new print stream, with the specified OutputStream, line flushing and charset.

    Creates a new print stream, without automatic line flushing, with the specified file name.

    Creates a new print stream, without automatic line flushing, with the specified file name and charset.

    Creates a new print stream, without automatic line flushing, with the specified file name and charset.

  • Method Summary

    append(char c)

    Appends the specified character to this output stream.

    Appends the specified character sequence to this output stream.

    Appends a subsequence of the specified character sequence to this output stream.

    charset()

    Returns the charset used in this PrintStream instance.

    boolean

    Flushes the stream if it's not closed and checks its error state.

    protected void

    Clears the error state of this stream.

    void

    close()

    void

    flush()

    Writes a formatted string to this output stream using the specified format string and arguments.

    Writes a formatted string to this output stream using the specified format string and arguments.

    void

    print(boolean b)

    void

    print(char c)

    void

    print(char[] s)

    Prints an array of characters.

    void

    print(double d)

    Prints a double-precision floating-point number.

    void

    print(float f)

    Prints a floating-point number.

    void

    print(int i)

    void

    print(long l)

    void

    void

    A convenience method to write a formatted string to this output stream using the specified format string and arguments.

    A convenience method to write a formatted string to this output stream using the specified format string and arguments.

    void

    println()

    Terminates the current line by writing the line separator string.

    void

    println(boolean x)

    Prints a boolean and then terminates the line.

    void

    println(char x)

    Prints a character and then terminates the line.

    void

    println(char[] x)

    Prints an array of characters and then terminates the line.

    void

    println(double x)

    Prints a double and then terminates the line.

    void

    println(float x)

    Prints a float and then terminates the line.

    void

    println(int x)

    Prints an integer and then terminates the line.

    void

    println(long x)

    Prints a long and then terminates the line.

    void

    Prints an Object and then terminates the line.

    void

    Prints a String and then terminates the line.

    protected void

    setError()

    Sets the error state of the stream to true.

    void

    write(byte[] buf)

    Writes all bytes from the specified byte array to this stream.

    void

    write(byte[] buf, int off, int len)

    Writes len bytes from the specified byte array starting at offset off to this stream.

    void

    write(int b)

    Writes the specified byte to this stream.

    void

    writeBytes(byte[] buf)

    Writes all bytes from the specified byte array to this stream.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    Returns a string representation of the object.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Constructor Details

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

    • PrintStream

  • Method Details

    • flush

    • close

    • checkError

    • setError

    • clearError

    • write

    • write

    • write

    • writeBytes

    • print

    • print

    • print

    • print

    • print

    • print

    • print

    • print

    • print

    • println

    • println

    • println

    • println

    • println

    • println

    • println

    • println

    • println

    • println

    • printf

    • printf

    • format

    • format

    • append

    • append

    • append

    • charset