PrintWriter PrintWriter Constructors

Definition

Overloads

PrintWriter(File) PrintWriter(File)

Constructs a new PrintWriter with file as its target.

PrintWriter(Writer) PrintWriter(Writer)

Constructs a new PrintWriter with wr as its target writer.

PrintWriter(Stream) PrintWriter(Stream)

Constructs a new PrintWriter with out as its target stream.

PrintWriter(String) PrintWriter(String)

Constructs a new PrintWriter with the file identified by fileName as its target.

PrintWriter(File, String) PrintWriter(File, String)

Constructs a new PrintWriter with file as its target.

PrintWriter(Writer, Boolean) PrintWriter(Writer, Boolean)

Constructs a new PrintWriter with out as its target writer.

PrintWriter(IntPtr, JniHandleOwnership) PrintWriter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PrintWriter(Stream, Boolean) PrintWriter(Stream, Boolean)

Constructs a new PrintWriter with out as its target stream.

PrintWriter(String, String) PrintWriter(String, String)

Constructs a new PrintWriter with the file identified by fileName as its target.

PrintWriter(File) PrintWriter(File)

Constructs a new PrintWriter with file as its target.

[Android.Runtime.Register(".ctor", "(Ljava/io/File;)V", "")]
public PrintWriter (Java.IO.File file);
new Java.IO.PrintWriter : Java.IO.File -> Java.IO.PrintWriter

Parameters

file
File File

Exceptions

if an error occurs while opening or creating the target file.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(Writer) PrintWriter(Writer)

Constructs a new PrintWriter with wr as its target writer.

[Android.Runtime.Register(".ctor", "(Ljava/io/Writer;)V", "")]
public PrintWriter (Java.IO.Writer out);
new Java.IO.PrintWriter : Java.IO.Writer -> Java.IO.PrintWriter

Parameters

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(Stream) PrintWriter(Stream)

Constructs a new PrintWriter with out as its target stream.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "")]
public PrintWriter (System.IO.Stream out);
new Java.IO.PrintWriter : System.IO.Stream -> Java.IO.PrintWriter

Parameters

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(String) PrintWriter(String)

Constructs a new PrintWriter with the file identified by fileName as its target.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public PrintWriter (string fileName);
new Java.IO.PrintWriter : string -> Java.IO.PrintWriter

Parameters

fileName
String String

Exceptions

if an error occurs while opening or creating the target file.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(File, String) PrintWriter(File, String)

Constructs a new PrintWriter with file as its target.

[Android.Runtime.Register(".ctor", "(Ljava/io/File;Ljava/lang/String;)V", "")]
public PrintWriter (Java.IO.File file, string csn);
new Java.IO.PrintWriter : Java.IO.File * string -> Java.IO.PrintWriter

Parameters

file
File File

Exceptions

if an error occurs while opening or creating the target file.

if the encoding specified by csn is not supported.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(Writer, Boolean) PrintWriter(Writer, Boolean)

Constructs a new PrintWriter with out as its target writer.

[Android.Runtime.Register(".ctor", "(Ljava/io/Writer;Z)V", "")]
public PrintWriter (Java.IO.Writer out, bool autoFlush);
new Java.IO.PrintWriter : Java.IO.Writer * bool -> Java.IO.PrintWriter

Parameters

autoFlush
Boolean Boolean

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(IntPtr, JniHandleOwnership) PrintWriter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected PrintWriter (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.PrintWriter : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.PrintWriter

Parameters

javaReference
IntPtr IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(Stream, Boolean) PrintWriter(Stream, Boolean)

Constructs a new PrintWriter with out as its target stream.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Z)V", "")]
public PrintWriter (System.IO.Stream out, bool autoFlush);
new Java.IO.PrintWriter : System.IO.Stream * bool -> Java.IO.PrintWriter

Parameters

autoFlush
Boolean Boolean

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PrintWriter(String, String) PrintWriter(String, String)

Constructs a new PrintWriter with the file identified by fileName as its target.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public PrintWriter (string fileName, string csn);
new Java.IO.PrintWriter : string * string -> Java.IO.PrintWriter

Parameters

fileName
String String

Exceptions

if an error occurs while opening or creating the target file.

if the encoding specified by csn is not supported.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to