-
public interface FileWrapperDocumentFile 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileWrapper.Mediapublic final classFileWrapper.Document
-
Method Summary
Modifier and Type Method Description abstract BooleanisEmpty(Context context)abstract StringgetAbsolutePath(Context context)abstract StringgetBasePath(Context context)abstract StringgetRelativePath(Context context)abstract OutputStreamopenOutputStream(Context context, Boolean append)abstract InputStreamopenInputStream(Context context)abstract Booleandelete()abstract UrigetUri()abstract StringgetName()abstract StringgetBaseName()abstract StringgetExtension()abstract StringgetMimeType()-
-
Method Detail
-
getAbsolutePath
abstract String getAbsolutePath(Context context)
-
getBasePath
abstract String getBasePath(Context context)
-
getRelativePath
abstract String getRelativePath(Context context)
-
openOutputStream
@WorkerThread() abstract OutputStream openOutputStream(Context context, Boolean append)
-
openInputStream
@WorkerThread() abstract InputStream openInputStream(Context context)
-
getBaseName
abstract String getBaseName()
-
getExtension
abstract String getExtension()
-
getMimeType
abstract String getMimeType()
-
-
-
-