public class ContentType extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
private String |
charsetName |
private String |
mimeType |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ContentType() |
ContentType(String mimeType,
String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCharsetName() |
static ContentType |
getCompatibilityContentType() |
static ContentType |
getDotPropertiesContentType() |
String |
getMimeType() |
int |
hashCode() |
void |
setCharsetName(String charsetName) |
void |
setMimeType(String mimeType) |
String |
toString() |
boolean |
validate()
The defined content types which will successfully validate are:
text/x-java-properties
text/x-java-dot-properties
|
private static final long serialVersionUID
private String mimeType
private String charsetName
public boolean validate()
The defined content types which will successfully validate are: text/x-java-properties text/x-java-dot-properties
public String getMimeType()
public void setMimeType(String mimeType)
public String getCharsetName()
public void setCharsetName(String charsetName)
public static ContentType getCompatibilityContentType()
public static ContentType getDotPropertiesContentType()
Copyright © 2011-2014 David R. Smith. All Rights Reserved.