List of usage examples for org.apache.http.impl.client.cache.memcached MemcachedCacheEntry toByteArray
byte[] toByteArray();
From source file:org.apache.http.impl.client.cache.memcached.MemcachedHttpCacheStorage.java
private byte[] serializeEntry(final String url, final HttpCacheEntry hce) throws IOException { final MemcachedCacheEntry mce = memcachedCacheEntryFactory.getMemcachedCacheEntry(url, hce); try {// w w w . j av a 2 s.c om return mce.toByteArray(); } catch (final MemcachedSerializationException mse) { final IOException ioe = new IOException(); ioe.initCause(mse); throw ioe; } }