Class DefaultHttpCacheEntrySerializer
java.lang.Object
org.apache.http.impl.client.cache.DefaultHttpCacheEntrySerializer
- All Implemented Interfaces:
HttpCacheEntrySerializer
@Contract(threading=IMMUTABLE)
public class DefaultHttpCacheEntrySerializer
extends Object
implements HttpCacheEntrySerializer
HttpCacheEntrySerializer
implementation that uses the default (native)
serialization.- Since:
- 4.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadFrom
(InputStream is) Deserializes a byte representation of a cache entry by reading from the givenInputStream
.void
writeTo
(HttpCacheEntry cacheEntry, OutputStream os) Serializes the given entry to a byte representation on the givenOutputStream
.
-
Constructor Details
-
DefaultHttpCacheEntrySerializer
public DefaultHttpCacheEntrySerializer()
-
-
Method Details
-
writeTo
Description copied from interface:HttpCacheEntrySerializer
Serializes the given entry to a byte representation on the givenOutputStream
.- Specified by:
writeTo
in interfaceHttpCacheEntrySerializer
- Throws:
IOException
-
readFrom
Description copied from interface:HttpCacheEntrySerializer
Deserializes a byte representation of a cache entry by reading from the givenInputStream
.- Specified by:
readFrom
in interfaceHttpCacheEntrySerializer
- Throws:
IOException
-