protected static class FileServlet.ChainedRange extends Object implements FileServlet.Range
FileServlet.FirstLastRanges.
So, this deals with the entire Range specification then.| Modifier and Type | Field and Description |
|---|---|
(package private) long |
max |
(package private) List<FileServlet.Range> |
ranges |
| Constructor and Description |
|---|
ChainedRange(String s,
long max) |
| Modifier and Type | Method and Description |
|---|---|
long |
available(long i)
If we are at byte number i, how many are available from here until we encounter one which isn't?
|
long |
getLength() |
long |
notavailable(long i)
If we are at byte number i, how many are not available from here until we encounter one which is?
|
String |
toString() |
final List<FileServlet.Range> ranges
final long max
ChainedRange(String s, long max)
public long available(long i)
FileServlet.Rangeavailable in interface FileServlet.Range0 if there are not bytes available. A large number near Long.MAX_VALUE if there is no limit any more.public long notavailable(long i)
FileServlet.Rangenotavailable in interface FileServlet.Range0 if the next character is availabe. A large number near Long.MAX_VALUE if all subsequent byes are unavailable.public long getLength()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}