JML

java.io
Class PrintWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
All Implemented Interfaces:
Appendable, Closeable, Flushable
Direct Known Subclasses:
com.sun.tools.doclets.HtmlWriter

public class PrintWriter
extends Writer


Field Summary
private  boolean autoFlush
           
private  Formatter formatter
           
private  String lineSeparator
           
protected  Writer out
           
private  PrintStream psOut
           
private  boolean trouble
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PrintWriter(File)
           
PrintWriter(File, String)
           
PrintWriter(OutputStream)
           
PrintWriter(OutputStream, boolean)
           
PrintWriter(Writer)
           
PrintWriter(Writer, boolean)
           
PrintWriter(String)
           
PrintWriter(String, String)
           
 
Method Summary
 PrintWriter append(char)
           
 Writer append(char)
           
 Appendable append(char)
           
 PrintWriter append(CharSequence)
           
 Writer append(CharSequence)
           
 Appendable append(CharSequence)
           
 PrintWriter append(CharSequence, int, int)
           
 Writer append(CharSequence, int, int)
           
 Appendable append(CharSequence, int, int)
           
 boolean checkError()
           
protected  void clearError()
           
 void close()
           
private  void ensureOpen()
           
 void flush()
           
 PrintWriter format(String, Object[])
           
 PrintWriter format(Locale, String, Object[])
           
private  void newLine()
           
 void print(boolean)
           
 void print(char)
           
 void print(char[])
           
 void print(double)
           
 void print(float)
           
 void print(int)
           
 void print(Object)
           
 void print(String)
           
 void print(long)
           
 PrintWriter printf(String, Object[])
           
 PrintWriter printf(Locale, String, Object[])
           
 void println()
           
 void println(boolean)
           
 void println(char)
           
 void println(char[])
           
 void println(double)
           
 void println(float)
           
 void println(int)
           
 void println(Object)
           
 void println(String)
           
 void println(long)
           
protected  void setError()
           
 void write(char[])
           
 void write(char[], int, int)
           
 void write(int)
           
 void write(String)
           
 void write(String, int, int)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lineSeparator

private String lineSeparator

trouble

private boolean trouble

out

protected Writer out

formatter

private Formatter formatter

autoFlush

private boolean autoFlush

psOut

private PrintStream psOut
Constructor Detail

PrintWriter

public PrintWriter(Writer)

PrintWriter

public PrintWriter(Writer,
                   boolean)

PrintWriter

public PrintWriter(OutputStream)

PrintWriter

public PrintWriter(OutputStream,
                   boolean)

PrintWriter

public PrintWriter(String)
            throws FileNotFoundException
Throws:
FileNotFoundException

PrintWriter

public PrintWriter(String,
                   String)
            throws FileNotFoundException,
                   UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

PrintWriter

public PrintWriter(File)
            throws FileNotFoundException
Throws:
FileNotFoundException

PrintWriter

public PrintWriter(File,
                   String)
            throws FileNotFoundException,
                   UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException
Method Detail

ensureOpen

private void ensureOpen()
                 throws IOException
Throws:
IOException

flush

public void flush()

close

public void close()

checkError

public boolean checkError()

setError

protected void setError()

clearError

protected void clearError()

write

public void write(int)
Overrides:
write in class Writer

write

public void write(char[],
                  int,
                  int)

write

public void write(char[])
Overrides:
write in class Writer

write

public void write(String,
                  int,
                  int)
Overrides:
write in class Writer

write

public void write(String)
Overrides:
write in class Writer

newLine

private void newLine()

print

public void print(boolean)

print

public void print(char)

print

public void print(int)

print

public void print(long)

print

public void print(float)

print

public void print(double)

print

public void print(char[])

print

public void print(String)

print

public void print(Object)

println

public void println()

println

public void println(boolean)

println

public void println(char)

println

public void println(int)

println

public void println(long)

println

public void println(float)

println

public void println(double)

println

public void println(char[])

println

public void println(String)

println

public void println(Object)

printf

public transient PrintWriter printf(String,
                                    Object[])

printf

public transient PrintWriter printf(Locale,
                                    String,
                                    Object[])

format

public transient PrintWriter format(String,
                                    Object[])

format

public transient PrintWriter format(Locale,
                                    String,
                                    Object[])

append

public PrintWriter append(CharSequence)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public PrintWriter append(CharSequence,
                          int,
                          int)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public PrintWriter append(char)
Specified by:
append in interface Appendable
Overrides:
append in class Writer

append

public volatile Writer append(char)
                       throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public volatile Writer append(CharSequence,
                              int,
                              int)
                       throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public volatile Writer append(CharSequence)
                       throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public volatile Appendable append(char)
                           throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public volatile Appendable append(CharSequence,
                                  int,
                                  int)
                           throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public volatile Appendable append(CharSequence)
                           throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.