Partager via


Files.NewBufferedWriter Method

Definition

Overloads

NewBufferedWriter(IPath, IOpenOption[])

Opens or creates a file for writing, returning a BufferedWriter that may be used to write text to the file in an efficient manner.

NewBufferedWriter(IPath, Charset, IOpenOption[])

Opens or creates a file for writing, returning a BufferedWriter that may be used to write text to the file in an efficient manner.

NewBufferedWriter(IPath, IOpenOption[])

Opens or creates a file for writing, returning a BufferedWriter that may be used to write text to the file in an efficient manner.

[Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)]
public static Java.IO.BufferedWriter? NewBufferedWriter (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)>]
static member NewBufferedWriter : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> Java.IO.BufferedWriter

Parameters

path
IPath

the path to the file

options
IOpenOption[]

options specifying how the file is opened

Returns

a new buffered writer, with default buffer size, to write text to the file

Attributes

Remarks

Java documentation for java.nio.file.Files.newBufferedWriter(java.nio.file.Path, java.nio.charset.Charset, java.nio.file.OpenOption).

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

NewBufferedWriter(IPath, Charset, IOpenOption[])

Opens or creates a file for writing, returning a BufferedWriter that may be used to write text to the file in an efficient manner.

[Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)]
public static Java.IO.BufferedWriter? NewBufferedWriter (Java.Nio.FileNio.IPath? path, Java.Nio.Charset.Charset? cs, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("newBufferedWriter", "(Ljava/nio/file/Path;Ljava/nio/charset/Charset;[Ljava/nio/file/OpenOption;)Ljava/io/BufferedWriter;", "", ApiSince=26)>]
static member NewBufferedWriter : Java.Nio.FileNio.IPath * Java.Nio.Charset.Charset * Java.Nio.FileNio.IOpenOption[] -> Java.IO.BufferedWriter

Parameters

path
IPath

the path to the file

cs
Charset

the charset to use for encoding

options
IOpenOption[]

options specifying how the file is opened

Returns

a new buffered writer, with default buffer size, to write text to the file

Attributes

Remarks

Java documentation for java.nio.file.Files.newBufferedWriter(java.nio.file.Path, java.nio.charset.Charset, java.nio.file.OpenOption).

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