|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.simplemagic.ContentInfo
public class ContentInfo
Information associated with some content, returned by the magic matching code in
ContentInfoUtil.findMatch(String)
and other methods.
Constructor Summary | |
---|---|
ContentInfo(String name,
String mimeType,
String message)
|
Method Summary | |
---|---|
ContentType |
getContentType()
Returns the internal enumerated type associated with the content or ContentType.OTHER if not known. |
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 either from the content-type or extracted from the message. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentInfo(String name, String mimeType, String message)
Method Detail |
---|
public ContentType getContentType()
ContentType.OTHER
if not known.
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 |