Partager via


Files.NewInputStream(IPath, IOpenOption[]) Method

Definition

Opens a file, returning an input stream to read from the file.

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

Parameters

path
IPath

the path to the file to open

options
IOpenOption[]

options specifying how the file is opened

Returns

a new input stream

Attributes

Remarks

Java documentation for java.nio.file.Files.newInputStream(java.nio.file.Path, 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