@ Nullable public static EnhancedMimeType create ( @ Nullable final String str ) { if ( str == null ) { return null ; } try { return new EnhancedMimeType ( str ) ; } catch ( final MimeTypeParseException ex ) { throw new RuntimeException ( "Failed to create versioned mime type: " + str , ex ) ; } }
Creates an instance with all data . Exceptions are wrapped to runtime exceptions .