org.mmbase.servlet
Interface FileServlet.Range

All Known Implementing Classes:
FileServlet.ChainedRange, FileServlet.FirstLastRange
Enclosing class:
FileServlet

protected static interface FileServlet.Range

Since:
MMBase-2.0

Method Summary
 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?
 

Method Detail

available

long available(long i)
If we are at byte number i, how many are available from here until we encounter one which isn't?

Returns:
A number of bytes which are available, 0 if there are not bytes available. A large number near Long.MAX_VALUE if there is no limit any more.

notavailable

long notavailable(long i)
If we are at byte number i, how many are not available from here until we encounter one which is?

Returns:
Some number of bytes or 0 if the next character is availabe. A large number near Long.MAX_VALUE if all subsequent byes are unavailable.


MMBase 2.0-SNAPSHOT - null