|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.utils.MimeType
public class MimeType
| Constructor Summary | |
|---|---|
MimeType()
|
|
MimeType(String type,
String subType)
Create instance of MimeType. |
|
MimeType(String type,
String subType,
Map<String,String> parameters)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
static MimeType |
fromString(String source)
Create instance of MimeType from the string. |
String |
getBaseType()
|
String |
getParameter(String name)
|
Map<String,String> |
getParameters()
|
String |
getSubType()
|
String |
getType()
|
int |
hashCode()
|
boolean |
match(MimeType other)
Check is one mime-type compatible to other. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MimeType()
public MimeType(String type,
String subType)
type - the name of typesubType - the name of sub-type
public MimeType(String type,
String subType,
Map<String,String> parameters)
| Method Detail |
|---|
public static MimeType fromString(String source)
source - string that represents media-type in form 'type/sub-type'.
If source is null or empty then it is the
same as pass '*/*'. All parameters after ';' in
source will be ignored.
public boolean equals(Object other)
equals in class Objectpublic String getSubType()
public String getType()
public Map<String,String> getParameters()
public String getParameter(String name)
public int hashCode()
hashCode in class Objectpublic boolean match(MimeType other)
other - MimeType to be checked for compatible with this.
public String getBaseType()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||