-
public interface ContentMimeTypeMIME type of the content of the JSON string.- Author:
- leadpony
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantest(byte[] decodedContent, Map<String,String> parameters)Checks whether the specified content is of this MIME type or not.booleantest(String content)Checks whether the specified content is of this MIME type or not.StringtoString()Returns the string representation of this MIME type.
-
-
-
Method Detail
-
toString
String toString()
Returns the string representation of this MIME type.
-
test
boolean test(String content)
Checks whether the specified content is of this MIME type or not.- Parameters:
content- the content to check, never benull.- Returns:
trueif the specified content is of this MIME type,falseotherwise.- Throws:
NullPointerException- if the specifiedcontentisnull.
-
test
boolean test(byte[] decodedContent, Map<String,String> parameters)Checks whether the specified content is of this MIME type or not.- Parameters:
decodedContent- the content to check, never benull.parameters- the parameters attached to this MIME type, nevernull.- Returns:
trueif the specified content is of this MIME type,falseotherwise.- Throws:
NullPointerException- if the specifieddecodedContentorparametersisnull.
-
-