|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.simplemagic.ContentType
public class ContentType
Content-type associated with a file or bytes, returned by the magic matching code in
ContentTypeUtil.findMatch(String)
and other methods.
Constructor Summary | |
---|---|
ContentType(String name,
String mimeType,
String message)
|
Method Summary | |
---|---|
String |
getMessage()
Returns the full message as generated by the magic matching code. |
String |
getMimeType()
Returns the mime-type or null if none. |
String |
getName()
Returns the short name of the content type. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentType(String name, String mimeType, String message)
Method Detail |
---|
public String getName()
public String getMimeType()
public String getMessage()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |