org.wymiwyg.commons.mediatypes
Class MimeType

java.lang.Object
  extended by javax.activation.MimeType
      extended by org.wymiwyg.commons.mediatypes.MimeType
All Implemented Interfaces:
Externalizable, Serializable

public class MimeType
extends javax.activation.MimeType

Same as javax.activation.MimeType but with equals and hashCode method overwritten

Author:
reto
See Also:
Serialized Form

Constructor Summary
MimeType()
           
MimeType(String rawdata)
           
MimeType(String primary, String sub)
           
 
Method Summary
 boolean equals(Object arg0)
           
 int hashCode()
           
 
Methods inherited from class javax.activation.MimeType
getBaseType, getParameter, getParameters, getPrimaryType, getSubType, match, match, readExternal, removeParameter, setParameter, setPrimaryType, setSubType, toString, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MimeType

public MimeType()

MimeType

public MimeType(String rawdata)
         throws javax.activation.MimeTypeParseException
Parameters:
rawdata -
Throws:
javax.activation.MimeTypeParseException

MimeType

public MimeType(String primary,
                String sub)
         throws javax.activation.MimeTypeParseException
Parameters:
primary -
sub -
Throws:
javax.activation.MimeTypeParseException
Method Detail

equals

public boolean equals(Object arg0)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2011. All Rights Reserved.