public class ImmutableMimeType extends MimeType
MimeType
class. Additionally, its constructors are
slightly saner: instead of throwing a checked exception (MimeTypeParseException
), it just
throws an unckeched IllegalArgumentException
should something look fishy.Constructor and Description |
---|
ImmutableMimeType(String rawdata) |
ImmutableMimeType(String rawdata,
Map<String,String> parameters) |
ImmutableMimeType(String primary,
String sub) |
ImmutableMimeType(String primary,
String sub,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
MimeTypeParameterList |
getParameters() |
void |
removeParameter(String name) |
void |
setParameter(String name,
String value) |
void |
setPrimaryType(String primary) |
void |
setSubType(String sub) |
getBaseType, getParameter, getPrimaryType, getSubType, match, match, readExternal, toString, writeExternal
public ImmutableMimeType(String rawdata)
public ImmutableMimeType(String primary, String sub, Map<String,String> parameters)
public void setPrimaryType(String primary) throws MimeTypeParseException
setPrimaryType
in class MimeType
MimeTypeParseException
public void setSubType(String sub) throws MimeTypeParseException
setSubType
in class MimeType
MimeTypeParseException
public void setParameter(String name, String value)
setParameter
in class MimeType
public void removeParameter(String name)
removeParameter
in class MimeType
public MimeTypeParameterList getParameters()
getParameters
in class MimeType
Copyright © 2024 levigo holding gmbh. All rights reserved.