railo.commons.io.res
Class ContentTypeImpl
java.lang.Object
railo.commons.io.res.ContentTypeImpl
- All Implemented Interfaces:
- ContentType
public final class ContentTypeImpl
- extends Object
- implements ContentType
APPLICATION_UNKNOW
public static final ContentType APPLICATION_UNKNOW
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)
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interface ContentType
- Returns:
- the mime type
getCharset
public String getCharset()
- Specified by:
getCharset
in interface ContentType
- Returns:
- the charset
Copyright © 2012 Railo