public class ZipAdapter extends PropertyStorageAdapter
Constructor and Description |
---|
ZipAdapter() |
Modifier and Type | Method and Description |
---|---|
Object |
fromSpace(Object value)
Triggered when a property value arrives from the space and is about to be injected in the user's object.
|
String |
getName()
Returns a name used for display in monitoring tools.
|
Class<?> |
getStorageClass()
Returns the class of the values which will be stored in the space.
|
boolean |
supportsEqualsMatching()
Indicates whether equality matching is supported.
|
BinaryWrapper |
toBinaryWrapper(byte[] data)
Default factory for wrapping a byte array in a container for space storage.
|
Object |
toSpace(Object value)
Triggered when a property value is retrieved from the user's object and is about to be sent to the space.
|
base64Decode, base64Encode, deserialize, serialize, supportsOrderedMatching, unwrapBinary, unzip, useBase64Wrapper, wrapBinary, zip
public String getName()
PropertyStorageAdapter
getName
in class PropertyStorageAdapter
public Class<?> getStorageClass()
PropertyStorageAdapter
getStorageClass
in class PropertyStorageAdapter
public boolean supportsEqualsMatching()
PropertyStorageAdapter
supportsEqualsMatching
in class PropertyStorageAdapter
public Object toSpace(Object value) throws IOException
PropertyStorageAdapter
toSpace
in class PropertyStorageAdapter
value
- The original property valueIOException
- Thrown when processing the property value fails.public Object fromSpace(Object value) throws IOException, ClassNotFoundException
PropertyStorageAdapter
fromSpace
in class PropertyStorageAdapter
value
- The value which was stored in the spaceIOException
- Thrown when processing the property value fails.ClassNotFoundException
- Thrown when processing the property value fails due to a class loading issue.public BinaryWrapper toBinaryWrapper(byte[] data)
PropertyStorageAdapter
toBinaryWrapper
in class PropertyStorageAdapter
Copyright © GigaSpaces.