Package com.unitech.api.file.helper
Class FileCtrlHelper
- java.lang.Object
-
- com.unitech.api.file.helper.FileCtrlHelper
-
public class FileCtrlHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileCtrlHelper(android.content.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseFileStream()booleandelete(java.lang.String path)booleanexists(java.lang.String path)java.io.InputStreamgetInputStream(java.lang.String path)java.io.OutputStreamgetOutputStream(java.lang.String path, boolean keepContents)byte[]readFile(java.lang.String path)voidwriteFile(java.lang.String path, byte[] content)voidwriteFile(java.lang.String path, byte[] content, boolean keepContents)
-
-
-
Method Detail
-
delete
public boolean delete(java.lang.String path)
-
exists
public boolean exists(java.lang.String path)
-
writeFile
public void writeFile(java.lang.String path, byte[] content)
-
writeFile
public void writeFile(java.lang.String path, byte[] content, boolean keepContents)
-
readFile
public byte[] readFile(java.lang.String path)
-
getInputStream
public java.io.InputStream getInputStream(java.lang.String path)
-
getOutputStream
public java.io.OutputStream getOutputStream(java.lang.String path, boolean keepContents)
-
closeFileStream
public void closeFileStream()
-
-