| Truncate passed mimetype.
Ensure no spaces. Strip encoding. Truncation required by
ARC files.
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 ' '.
Parameters: contentType - Raw content-type. Computed content-type made from passed content-type afterrunning it through a set of rules. |