String function ( String arg0 ) { int loc0 = arg0 . lastIndexOf ( '.' ) ; if ( loc0 >= 1 && loc0 < arg0 . length ( ) - 1 ) { String loc1 = arg0 . substring ( loc0 + 1 ) ; return getMimeTypeForExtension ( loc1 ) ; } else { return null ; } }
gets the mime type for the file with the given name , by extension . this method tries to extract the file extension and then use the #getmimetypeforextension string to determine themime type . if the extension can not be determined , or the extension is unrecognized , this method return null . concode_field_sep String DEFAULT_MIME_TYPE concode_elem_sep HashMap<String,String> MIME_MAP concode_field_sep String getDefaultMimeType concode_elem_sep String getMimeTypeForExtension