|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ftp.ByteRange
public class 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(java.lang.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. |
java.lang.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
java.lang.IllegalArgumentException - if to < frompublic ByteRange(ByteRange src)
| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int merge(ByteRange other)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||