public class ContentType extends Object implements Externalizable
| Constructor and Description |
|---|
ContentType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSubType()
Retrieves the sub-type.
|
String |
getType()
Retrieves the type.
|
void |
readExternal(ObjectInput in) |
ContentType |
setSubType(String subType)
Sets the sub-type.
|
ContentType |
setType(String type)
Sets the type.
|
void |
writeExternal(ObjectOutput out) |
public String getSubType()
public ContentType setSubType(String subType)
subType - public String getType()
public ContentType setType(String type)
type - public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015. All Rights Reserved.