|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.archive.util.MimetypeUtils
public class MimetypeUtils
Class of mimetype utilities.
Field Summary | |
---|---|
static java.lang.String |
NO_TYPE_MIMETYPE
The 'no-type' content-type. |
(package private) static java.util.regex.Pattern |
TRUNCATION_REGEX
Truncation regex. |
Constructor Summary | |
---|---|
MimetypeUtils()
|
Method Summary | |
---|---|
static java.lang.String |
truncate(java.lang.String contentType)
Truncate passed mimetype. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NO_TYPE_MIMETYPE
static final java.util.regex.Pattern TRUNCATION_REGEX
Constructor Detail |
---|
public MimetypeUtils()
Method Detail |
---|
public static java.lang.String truncate(java.lang.String contentType)
Truncate at delimiters [;, ]. Truncate multi-part content type header at ';'. Apache httpclient collapses values of multiple instances of the header into one comma-separated value,therefore truncated at ','. Current ia_tools that work with arc files expect 5-column space-separated meta-lines, therefore truncate at ' '.
contentType
- Raw content-type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |