HttpByteArrayCacheEntrySerializer
for improved performance.@Deprecated @Contract(threading=STATELESS) public final class ByteArrayCacheEntrySerializer extends Object implements HttpCacheEntrySerializer<byte[]>
HttpCacheEntrySerializer
implementation that uses the default (native)
serialization.Serializable
,
HttpByteArrayCacheEntrySerializer
Modifier and Type | Field and Description |
---|---|
static ByteArrayCacheEntrySerializer |
INSTANCE
Deprecated.
Default instance of
ByteArrayCacheEntrySerializer . |
Constructor and Description |
---|
ByteArrayCacheEntrySerializer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HttpCacheStorageEntry |
deserialize(byte[] serializedObject)
Deprecated.
Deserializes a cache entry from its serialized representation.
|
byte[] |
serialize(HttpCacheStorageEntry cacheEntry)
Deprecated.
Serializes the given entry.
|
public static final ByteArrayCacheEntrySerializer INSTANCE
ByteArrayCacheEntrySerializer
.public byte[] serialize(HttpCacheStorageEntry cacheEntry) throws ResourceIOException
HttpCacheEntrySerializer
serialize
in interface HttpCacheEntrySerializer<byte[]>
cacheEntry
- cache entryResourceIOException
public HttpCacheStorageEntry deserialize(byte[] serializedObject) throws ResourceIOException
HttpCacheEntrySerializer
deserialize
in interface HttpCacheEntrySerializer<byte[]>
serializedObject
- serialized representation of the cache entryResourceIOException
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.