Constructor and Description |
---|
PrintWriter(File file)
Creates a new PrintWriter, without automatic line flushing, with the specified file.
|
PrintWriter(File file, String csn)
Creates a new PrintWriter, without automatic line flushing, with the specified file and charset.
|
PrintWriter(OutputStream out)
Creates a new PrintWriter, without automatic line flushing, from an existing OutputStream.
|
PrintWriter(OutputStream out, boolean autoFlush)
Creates a new PrintWriter from an existing OutputStream.
|
PrintWriter(String fileName)
Creates a new PrintWriter, without automatic line flushing, with the specified file name.
|
PrintWriter(String fileName, String csn)
Creates a new PrintWriter, without automatic line flushing, with the specified file name and charset.
|
PrintWriter(Writer out)
Creates a new PrintWriter, without automatic line flushing.
|
PrintWriter(Writer out, boolean autoFlush)
Creates a new PrintWriter.
|
参考 JDK