Package 

Interface FileWrapper


  • 
    public interface FileWrapper
    
                        

    DocumentFile is developed by Google and is impossible to share the same interface with MediaFile that is developed by me, because they have different behavior and capabilities. So we need to create an abstraction by checking the class type. They both may share the same functions, e.g. delete, get file name, open stream, etc.