public class MimeTypeByteArray extends Object implements Serializable
This class provides the means to bypass Java's serialization mechanism to as to store anything that can be turned into bytes. It opens the way to non Java uses of ehcache.
Constructor and Description |
---|
MimeTypeByteArray()
Empty constructor, as required for JavaBeans
|
MimeTypeByteArray(String mimeType,
byte[] value)
Full constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getMimeType() |
byte[] |
getValue() |
void |
setMimeType(String mimeType) |
void |
setValue(byte[] value) |
public MimeTypeByteArray()
public MimeTypeByteArray(String mimeType, byte[] value)
mimeType
- any String that provides information as to the type of the valuevalue
- an arbitrary binary value.public String getMimeType()
public void setMimeType(String mimeType)
mimeType
- any String that provides information as to the type of the valuepublic byte[] getValue()
getMimeType()
public void setValue(byte[] value)
value
- an arbitrary binary value.Copyright 2001-2020, Terracotta, Inc.