-
public final class SuFileInputStreamOpen InputStreams that read files with root access.
Directly creating instances of this class is deprecated, please use the static helper methods to open new InputStreams.
-
-
Method Summary
Modifier and Type Method Description static InputStreamopen(@NonNull() String path){@code SuFileInputStream.open(new File(path))}static InputStreamopen(@NonNull() File file)Open an InputStream with root access. -
-
Method Detail
-
open
@NonNull() static InputStream open(@NonNull() String path)
{@code SuFileInputStream.open(new File(path))}
-
open
@NonNull() static InputStream open(@NonNull() File file)
Open an InputStream with root access.
Unless
{@code file}is an SuFile, this method will always try to directlyopen a FileInputStream, and fallback to using root access when it fails.
-
-
-
-