private String getMime ( String name , String delimiter ) { if ( StringUtils . hasText ( name ) ) { return name . substring ( name . lastIndexOf ( delimiter ) , name . length ( ) ) ; } return null ; }
Method get the mime value from the given file name