Package org.apache.http.client.cache
Interface HttpCacheEntrySerializer
-
- All Known Implementing Classes:
DefaultHttpCacheEntrySerializer
public interface HttpCacheEntrySerializer
Used by someHttpCacheStorage
implementations to serializeHttpCacheEntry
instances to a byte representation before storage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpCacheEntry
readFrom(java.io.InputStream is)
Deserializes a byte representation of a cache entry by reading from the givenInputStream
.void
writeTo(HttpCacheEntry entry, java.io.OutputStream os)
Serializes the given entry to a byte representation on the givenOutputStream
.
-
-
-
Method Detail
-
writeTo
void writeTo(HttpCacheEntry entry, java.io.OutputStream os) throws java.io.IOException
Serializes the given entry to a byte representation on the givenOutputStream
.- Throws:
java.io.IOException
-
readFrom
HttpCacheEntry readFrom(java.io.InputStream is) throws java.io.IOException
Deserializes a byte representation of a cache entry by reading from the givenInputStream
.- Throws:
java.io.IOException
-
-