Package org.apache.http.client.cache
Interface HttpCacheEntrySerializer
- All Known Implementing Classes:
DefaultHttpCacheEntrySerializer
public interface HttpCacheEntrySerializer
Used by some
HttpCacheStorage implementations to serialize
HttpCacheEntry instances to a byte representation before
storage.-
Method Summary
Modifier and TypeMethodDescriptionreadFrom(InputStream is) Deserializes a byte representation of a cache entry by reading from the givenInputStream.voidwriteTo(HttpCacheEntry entry, OutputStream os) Serializes the given entry to a byte representation on the givenOutputStream.
-
Method Details
-
writeTo
Serializes the given entry to a byte representation on the givenOutputStream.- Throws:
IOException
-
readFrom
Deserializes a byte representation of a cache entry by reading from the givenInputStream.- Throws:
IOException
-