|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.ftp.ByteRange
Represents a range of integers. The name reflects the fact that it is used with FTP extended mode restart markers, where it represents a range of transfered bytes.
| Field Summary | |
static int |
ADJACENT
|
long |
from
lower range limit |
static int |
THIS_ABOVE
|
static int |
THIS_BELOW
|
static int |
THIS_SUBSET
|
static int |
THIS_SUPERSET
|
long |
to
upper range limit |
| Constructor Summary | |
ByteRange(ByteRange src)
copying constructor |
|
ByteRange(long from,
long to)
|
|
| Method Summary | |
boolean |
equals(Object other)
|
int |
hashCode()
|
int |
merge(ByteRange other)
If this range can be consolidated with the other one, modify this range so that it represents the result of merging this and the other range. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public long from
public long to
public static final int THIS_BELOW
public static final int ADJACENT
public static final int THIS_SUPERSET
public static final int THIS_SUBSET
public static final int THIS_ABOVE
| Constructor Detail |
public ByteRange(long from,
long to)
from - lower range limitto - upper range limit
IllegalARgumentException - if to < frompublic ByteRange(ByteRange src)
| Method Detail |
public boolean equals(Object other)
public int hashCode()
public int merge(ByteRange other)
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||