@Contract(threading=IMMUTABLE) public class DefaultHttpCacheEntrySerializer extends Object implements HttpCacheEntrySerializer
HttpCacheEntrySerializer implementation that uses the default (native)
serialization.Serializable| Constructor and Description |
|---|
DefaultHttpCacheEntrySerializer() |
| Modifier and Type | Method and Description |
|---|---|
HttpCacheEntry |
readFrom(InputStream is)
Deserializes a byte representation of a cache entry by reading
from the given
InputStream. |
void |
writeTo(HttpCacheEntry cacheEntry,
OutputStream os)
Serializes the given entry to a byte representation on the
given
OutputStream. |
public void writeTo(HttpCacheEntry cacheEntry, OutputStream os) throws IOException
HttpCacheEntrySerializerOutputStream.writeTo in interface HttpCacheEntrySerializerIOExceptionpublic HttpCacheEntry readFrom(InputStream is) throws IOException
HttpCacheEntrySerializerInputStream.readFrom in interface HttpCacheEntrySerializerIOExceptionCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.