|
||||||||||
| 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(java.lang.String fileName,
HttpHeader response)
Create a new PartialCacher that will update the given file with data from the given response. |
|
| Method Summary | |
|---|---|
java.nio.channels.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(java.lang.String fileName,
HttpHeader response)
throws java.io.IOException
fileName - the cache resource to updateresponse - the response header
java.io.IOException - if updating the cached resource fails| Method Detail |
|---|
public java.nio.channels.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 | |||||||||