~xdavidwu/saf-cephfs

5c540f7b20baaee8e36e4c43b5a9a666aa9b455a — xdavidwu 2 years ago 9b5dd94
MetadataReader: support mimetypes a la ExifInterface
1 files changed, 3 insertions(+), 4 deletions(-)

M src/main/java/org/safcephfs/MetadataReader.java
M src/main/java/org/safcephfs/MetadataReader.java => src/main/java/org/safcephfs/MetadataReader.java +3 -4
@@ 15,8 15,8 @@
 */

/*
 * Changed to remove Nullable annotation and make it under org.safcephfs
 * namespace.
 * Changed to remove Nullable annotation, make it under org.safcephfs namespace
 * and support whatever mimetype ExifInterface supports
 */

package org.safcephfs;


@@ 217,7 217,7 @@ public final class MetadataReader {
     * for the supplied mimetype.
     */
    public static boolean isSupportedMimeType(String mimeType) {
        return JPG_MIME_TYPE.equals(mimeType) || JPEG_MIME_TYPE.equals(mimeType);
        return ExifInterface.isSupportedMimeType(mimeType);
    }

    /**


@@ 244,7 244,6 @@ public final class MetadataReader {
        metadata.putStringArray(DocumentsContract.METADATA_TYPES,
                metadataTypes.toArray(new String[metadataTypes.size()]));
        // TODO: Add support for PDF and Video metadata
        // TODO: Broaden image support to all images
    }

    /**