@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
HttpCacheEntrySerializer
OutputStream
.writeTo
in interface HttpCacheEntrySerializer
IOException
public HttpCacheEntry readFrom(InputStream is) throws IOException
HttpCacheEntrySerializer
InputStream
.readFrom
in interface HttpCacheEntrySerializer
IOException
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.