Interface IOFileStrategy
public interface IOFileStrategy
-
Method Summary
Modifier and TypeMethodDescriptionandroid.media.MediaDataSourcegetMediaDataSource(android.content.Context context, android.net.Uri mediaUri, long length) android.media.MediaMetadataRetrievergetMediaMetaDataRetriever(String mediaFilePath, long length) getRootDirectoryPath(android.content.Context context) readContent(String sourceFilePath) readObject(android.content.Context context, String sourceFilePath, ValidatorClassNameMatcher validatorClassNameMatcher) readString(String sourceString) voidvoidwrite(InputStream sourceInputStream, String destinationFilePath, boolean append) voidvoidwriteObject(android.content.Context context, Object object, String destinationFilePath) writeString(String sourceContent)
-
Method Details
-
getRootDirectoryPath
-
write
void write(@NonNull InputStream sourceInputStream, @NonNull String destinationFilePath, boolean append) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
write
void write(@NonNull byte[] sourceBytes, @NonNull String destinationFilePath, boolean append) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
write
void write(@NonNull String sourceString, @NonNull String destinationFilePath, boolean append) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
writeString
@Nullable String writeString(@NonNull String sourceContent) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
writeObject
void writeObject(@NonNull android.content.Context context, @NonNull Object object, @NonNull String destinationFilePath) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
read
- Throws:
IOException
-
readContent
- Throws:
IOException
-
readString
- Throws:
IOException
-
readObject
@Nullable Object readObject(@NonNull android.content.Context context, @NonNull String sourceFilePath, @Nullable ValidatorClassNameMatcher validatorClassNameMatcher) throws IOException - Throws:
IOException
-
getMediaMetaDataRetriever
@Nullable android.media.MediaMetadataRetriever getMediaMetaDataRetriever(@NonNull String mediaFilePath, long length) -
getMediaDataSource
@Nullable android.media.MediaDataSource getMediaDataSource(@NonNull android.content.Context context, @NonNull android.net.Uri mediaUri, long length)
-