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(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 Detail
-
writeTo
void writeTo(HttpCacheEntry entry, OutputStream os) throws IOException
Serializes the given entry to a byte representation on the givenOutputStream.- Throws:
IOException
-
readFrom
HttpCacheEntry readFrom(InputStream is) throws IOException
Deserializes a byte representation of a cache entry by reading from the givenInputStream.- Throws:
IOException
-
-