Class 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
      void closeFileStream()  
      boolean delete​(java.lang.String path)  
      boolean exists​(java.lang.String path)  
      java.io.InputStream getInputStream​(java.lang.String path)  
      java.io.OutputStream getOutputStream​(java.lang.String path, boolean keepContents)  
      byte[] readFile​(java.lang.String path)  
      void writeFile​(java.lang.String path, byte[] content)  
      void writeFile​(java.lang.String path, byte[] content, boolean keepContents)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileCtrlHelper

        public FileCtrlHelper​(@NonNull
                              android.content.Context context)
    • 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()