|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.proxy.PartialCacher
public class PartialCacher
An updater that writes an updated range to a cache file.
Constructor Summary | |
---|---|
PartialCacher(File fileName,
HttpHeader response)
Create a new PartialCacher that will update the given file with data from the given response. |
Method Summary | |
---|---|
WritableByteChannel |
getChannel()
Get the channel that is written to. |
long |
getEnd()
Get the end position of the range. |
long |
getStart()
Get the start position of the range. |
long |
getTotal()
Get the size of the range |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartialCacher(File fileName, HttpHeader response) throws IOException
fileName
- the cache resource to updateresponse
- the response header
IOException
- if updating the cached resource failsMethod Detail |
---|
public WritableByteChannel getChannel()
public long getStart()
public long getEnd()
public long getTotal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |