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
HttpCacheEntrySerializerimplementation 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 HttpCacheEntryreadFrom(java.io.InputStream is)Deserializes a byte representation of a cache entry by reading from the givenInputStream.voidwriteTo(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:HttpCacheEntrySerializerSerializes the given entry to a byte representation on the givenOutputStream.- Specified by:
 writeToin interfaceHttpCacheEntrySerializer- Throws:
 java.io.IOException
 
- 
readFrom
public HttpCacheEntry readFrom(java.io.InputStream is) throws java.io.IOException
Description copied from interface:HttpCacheEntrySerializerDeserializes a byte representation of a cache entry by reading from the givenInputStream.- Specified by:
 readFromin interfaceHttpCacheEntrySerializer- Throws:
 java.io.IOException
 
 - 
 
 -