Package com.topjohnwu.superuser.io
Class SuFileInputStream
java.lang.Object
com.topjohnwu.superuser.io.SuFileInputStream
Open
InputStream
s 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 TypeMethodDescriptionstatic InputStream
Open anInputStream
with root access.static InputStream
SuFileInputStream.open(new File(path))
-
Method Details
-
open
SuFileInputStream.open(new File(path))
- Throws:
FileNotFoundException
-
open
Open anInputStream
with root access.Unless
file
is anSuFile
, this method will always try to directly open aFileInputStream
, and fallback to using root access when it fails.- Throws:
FileNotFoundException
- See Also:
-