/** * Returns the MIME type of the storage file format, or {@code null} if unknown or not applicable. * * @param storage the input/output object as a URL, file, image input stream, <i>etc.</i>. * @return the storage MIME type, or {@code null} if unknown or not applicable. * @throws DataStoreException if an error occurred while opening the storage. */ public static String probeContentType(final Object storage) throws DataStoreException { return registry().probeContentType(storage); }
/** * Returns the MIME type of the storage file format, or {@code null} if unknown or not applicable. * * @param storage the input/output object as a URL, file, image input stream, <i>etc.</i>. * @return the storage MIME type, or {@code null} if unknown or not applicable. * @throws DataStoreException if an error occurred while opening the storage. */ public static String probeContentType(final Object storage) throws DataStoreException { return registry().probeContentType(storage); }