@Immutable public class DefaultHttpCacheEntrySerializer extends java.lang.Object implements HttpCacheEntrySerializer
HttpCacheEntrySerializer implementation that uses the default (native)
serialization.Serializable| Constructor and Description |
|---|
DefaultHttpCacheEntrySerializer() |
| Modifier and Type | Method and Description |
|---|---|
HttpCacheEntry |
readFrom(java.io.InputStream is)
Deserializes a byte representation of a cache entry by reading
from the given
InputStream. |
void |
writeTo(HttpCacheEntry cacheEntry,
java.io.OutputStream os)
Serializes the given entry to a byte representation on the
given
OutputStream. |
public void writeTo(HttpCacheEntry cacheEntry, java.io.OutputStream os) throws java.io.IOException
HttpCacheEntrySerializerOutputStream.writeTo in interface HttpCacheEntrySerializerjava.io.IOExceptionpublic HttpCacheEntry readFrom(java.io.InputStream is) throws java.io.IOException
HttpCacheEntrySerializerInputStream.readFrom in interface HttpCacheEntrySerializerjava.io.IOException