String entryName,
Cache<HttpHeader, HttpHeader> cache)
throws IOException {
if (oldEntry != null) {
String oldName = cache.getEntryName (oldEntry);
PartialCacher pc =
new PartialCacher (getLogger (), oldName, response);
cacheChannel = pc.getChannel ();
updateRange (oldEntry, response, pc, cache);
return;
} else {
entry.setDataHook (response);
PartialCacher pc =
new PartialCacher (getLogger (), entryName, response);
cacheChannel = pc.getChannel ();
}
}