/** * Returns the MIME type of the given file based on the global MIME properties * * @param f The file * @return the corresponding MIME type */ private String getMediaType(File f) { String mime = FileUtils.getMediaType(f); return (mime != null)? mime : "application/octet-stream"; }
/** * Returns the MIME type of the given file based on the global MIME properties * * @param f The file * @return the corresponding MIME type */ private String getMediaType(File f) { String mime = FileUtils.getMediaType(f); return (mime != null)? mime : "application/octet-stream"; }
/** * Returns the MIME type of the given file based on the global MIME properties * * @param f The file * @return the corresponding MIME type */ private String getMediaType(File f) { String mime = FileUtils.getMediaType(f); return (mime != null)? mime : "application/octet-stream"; }
/** * Returns the MIME type of the given file based on the global MIME properties * * @param f The file * @return the corresponding MIME type */ private String getMediaType(File f) { String mime = FileUtils.getMediaType(f); return (mime != null)? mime : "application/octet-stream"; }
/** * Returns the MIME type of the given file based on the global MIME properties * * @param f The file * @return the corresponding MIME type */ private String getMediaType(File f) { String mime = FileUtils.getMediaType(f); return (mime != null)? mime : "application/octet-stream"; }
/** * Returns the MIME type of the given file based on the global MIME properties. * * <p>Falls back on <code>"application/octet-stream"</code> if the MIME type is unknown. * * @param f The file * @return the corresponding MIME type */ private String getMediaType(File f) { String mime = FileUtils.getMediaType(f); return (mime != null)? mime : "application/octet-stream"; } }