Class ByteArrayCacheEntrySerializer
- java.lang.Object
-
- org.apache.hc.client5.http.impl.cache.ByteArrayCacheEntrySerializer
-
- All Implemented Interfaces:
HttpCacheEntrySerializer<byte[]>
@Deprecated @Contract(threading=STATELESS) public final class ByteArrayCacheEntrySerializer extends java.lang.Object implements HttpCacheEntrySerializer<byte[]>
Deprecated.This class is deprecated and will be removed in a future release. Please useHttpByteArrayCacheEntrySerializerfor improved performance.HttpCacheEntrySerializerimplementation that uses the default (native) serialization.- Since:
- 4.1
- See Also:
Serializable,HttpByteArrayCacheEntrySerializer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classByteArrayCacheEntrySerializer.RestrictedObjectInputStreamDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static ByteArrayCacheEntrySerializerINSTANCEDeprecated.Default instance ofByteArrayCacheEntrySerializer.
-
Constructor Summary
Constructors Constructor Description ByteArrayCacheEntrySerializer()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpCacheStorageEntrydeserialize(byte[] serializedObject)Deprecated.Deserializes a cache entry from its serialized representation.byte[]serialize(HttpCacheStorageEntry cacheEntry)Deprecated.Serializes the given entry.
-
-
-
Field Detail
-
INSTANCE
public static final ByteArrayCacheEntrySerializer INSTANCE
Deprecated.Default instance ofByteArrayCacheEntrySerializer.
-
-
Method Detail
-
serialize
public byte[] serialize(HttpCacheStorageEntry cacheEntry) throws ResourceIOException
Deprecated.Description copied from interface:HttpCacheEntrySerializerSerializes the given entry.- Specified by:
serializein interfaceHttpCacheEntrySerializer<byte[]>- Parameters:
cacheEntry- cache entry- Returns:
- serialized representation of the cache entry
- Throws:
ResourceIOException
-
deserialize
public HttpCacheStorageEntry deserialize(byte[] serializedObject) throws ResourceIOException
Deprecated.Description copied from interface:HttpCacheEntrySerializerDeserializes a cache entry from its serialized representation.- Specified by:
deserializein interfaceHttpCacheEntrySerializer<byte[]>- Parameters:
serializedObject- serialized representation of the cache entry- Returns:
- cache entry
- Throws:
ResourceIOException
-
-