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.voidwriteTo(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:HttpCacheEntrySerializerSerializes the given entry to a byte representation on the givenOutputStream.- Specified by:
writeToin interfaceHttpCacheEntrySerializer- Throws:
IOException
-
readFrom
Description copied from interface:HttpCacheEntrySerializerDeserializes a byte representation of a cache entry by reading from the givenInputStream.- Specified by:
readFromin interfaceHttpCacheEntrySerializer- Throws:
IOException
-