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