Package org.apache.http.client.cache
Interface HttpCacheEntrySerializer
-
- All Known Implementing Classes:
DefaultHttpCacheEntrySerializer
public interface HttpCacheEntrySerializerUsed by someHttpCacheStorageimplementations to serializeHttpCacheEntryinstances to a byte representation before storage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpCacheEntryreadFrom(java.io.InputStream is)Deserializes a byte representation of a cache entry by reading from the givenInputStream.voidwriteTo(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
-
-