Class FileCtrlHelper

java.lang.Object
com.unitech.api.file.helper.FileCtrlHelper

public class FileCtrlHelper extends Object
  • Constructor Details

    • FileCtrlHelper

      public FileCtrlHelper(@NonNull android.content.Context context)
  • Method Details

    • delete

      public boolean delete(String path)
    • exists

      public boolean exists(String path)
    • writeFile

      public void writeFile(String path, byte[] content)
    • writeFile

      public void writeFile(String path, byte[] content, boolean keepContents)
    • readFile

      public byte[] readFile(String path)
    • getInputStream

      public InputStream getInputStream(String path)
    • getOutputStream

      public OutputStream getOutputStream(String path, boolean keepContents)
    • closeFileStream

      public void closeFileStream()