protected static class FileServlet.FirstLastRange extends Object implements FileServlet.Range
| Constructor and Description |
|---|
FirstLastRange(long f,
long l,
long m) |
FirstLastRange(String parse,
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 |
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() |
FirstLastRange(long f,
long l,
long m)
FirstLastRange(String parse, 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.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}