Class DefaultHttpCacheEntrySerializer
- java.lang.Object
-
- org.apache.http.impl.client.cache.DefaultHttpCacheEntrySerializer
-
- All Implemented Interfaces:
HttpCacheEntrySerializer
@Contract(threading=IMMUTABLE) public class DefaultHttpCacheEntrySerializer extends java.lang.Object implements HttpCacheEntrySerializer
HttpCacheEntrySerializer
implementation that uses the default (native) serialization.- Since:
- 4.1
- See Also:
Serializable
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpCacheEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete 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 cacheEntry, java.io.OutputStream os)
Serializes the given entry to a byte representation on the givenOutputStream
.
-
-
-
Method Detail
-
writeTo
public void writeTo(HttpCacheEntry cacheEntry, java.io.OutputStream os) throws java.io.IOException
Description copied from interface:HttpCacheEntrySerializer
Serializes the given entry to a byte representation on the givenOutputStream
.- Specified by:
writeTo
in interfaceHttpCacheEntrySerializer
- Throws:
java.io.IOException
-
readFrom
public HttpCacheEntry readFrom(java.io.InputStream is) throws java.io.IOException
Description copied from interface:HttpCacheEntrySerializer
Deserializes a byte representation of a cache entry by reading from the givenInputStream
.- Specified by:
readFrom
in interfaceHttpCacheEntrySerializer
- Throws:
java.io.IOException
-
-