to.etc.xml
Class MimeUtil

java.lang.Object
  extended by to.etc.xml.MimeUtil

public class MimeUtil
extends java.lang.Object


Constructor Summary
MimeUtil()
           
 
Method Summary
 java.lang.String getExtra(java.lang.String name)
           
 java.lang.String parseHeader(java.lang.String mime)
          The idiotic JSDK returns the entire content type header, including any subproperties (like charset) instead of decoding it as it bloody should.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeUtil

public MimeUtil()
Method Detail

parseHeader

public java.lang.String parseHeader(java.lang.String mime)
The idiotic JSDK returns the entire content type header, including any subproperties (like charset) instead of decoding it as it bloody should. This separates the content mime type from any parameters. Real useful to do this for every bloody servlet. FIXME This needs a proper quote-handling subproperty decoder but I do not feel like building that again.


getExtra

public java.lang.String getExtra(java.lang.String name)