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