For IntelliJ IDEA,
Android Studio or Eclipse



/** * Returns the MIME type of this file. * <p>The default implementation infers this based on the file name, but * sophisticated server might provide this information from different sources, * such as "svn:mime-type" in Subversion.</p> * * @return the MIME type of this file. * @throws FileNotFoundException if this {@link SCMFile} instance does not exist in the remote system (e.g. if you * created a nonexistent instance via {@link #child(String)}) * @throws IOException if an error occurs while performing the operation. * @throws InterruptedException if interrupted while performing the operation. */ @NonNull public String contentMimeType() throws IOException, InterruptedException { return getMimeType(getName()); }
/** * Returns the MIME type of this file. * <p>The default implementation infers this based on the file name, but * sophisticated server might provide this information from different sources, * such as "svn:mime-type" in Subversion.</p> * * @return the MIME type of this file. * @throws FileNotFoundException if this {@link SCMFile} instance does not exist in the remote system (e.g. if you * created a nonexistent instance via {@link #child(String)}) * @throws IOException if an error occurs while performing the operation. * @throws InterruptedException if interrupted while performing the operation. */ @NonNull public String contentMimeType() throws IOException, InterruptedException { return getMimeType(getName()); }