railo.commons.io.res
Class ContentTypeImpl

java.lang.Object
  extended by railo.commons.io.res.ContentTypeImpl
All Implemented Interfaces:
ContentType

public final class ContentTypeImpl
extends Object
implements ContentType


Field Summary
static ContentType APPLICATION_UNKNOW
           
 
Constructor Summary
ContentTypeImpl(InputStream is)
           
ContentTypeImpl(String type, String subtype)
          Constructor of the class
ContentTypeImpl(String type, String subtype, String charset)
          Constructor of the class
 
Method Summary
 boolean equals(Object other)
           
 String getCharset()
           
 String getMimeType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APPLICATION_UNKNOW

public static final ContentType APPLICATION_UNKNOW
Constructor Detail

ContentTypeImpl

public ContentTypeImpl(String type,
                       String subtype,
                       String charset)
Constructor of the class

Parameters:
type -
subtype -
charset -

ContentTypeImpl

public ContentTypeImpl(String type,
                       String subtype)
Constructor of the class

Parameters:
type -
subtype -

ContentTypeImpl

public ContentTypeImpl(InputStream is)
Method Detail

equals

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

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getMimeType

public String getMimeType()
Returns:
the mime type

getCharset

public String getCharset()
Returns:
the charset


Copyright © 2012 Railo