|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ftp.ByteRangeList
Represents list of ranges of integers (ByteRange objects). The name reflects the fact that in FTP extended mode restart markers, such structure represent a list of ranges of transfered bytes. The list has following characteristic:
GridFTPRestartMarker
Field Summary | |
protected Vector |
vector
vector of ByteRanges. |
Constructor Summary | |
ByteRangeList()
|
Method Summary | |
boolean |
equals(Object other)
|
int |
hashCode()
|
void |
merge(ByteRange range)
Merge a copy of the given ByteRange into this list. |
void |
merge(ByteRangeList other)
Merge into this list all the ranges contained in the given ByteRangeList using merge(ByteRange). |
void |
merge(Vector other)
Merge into this list all the ranges contained in the given vector using merge(ByteRange). |
String |
toFtpCmdArgument()
convert this object to a String, in the format of argument of REST GridFTP command, for instance: "0-29,32-89" The resulting String will preserve the features of ByteRangeList: (1) order and (2) separation |
Vector |
toVector()
convert this object to a vector of ByteRanges. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector vector
Constructor Detail |
public ByteRangeList()
Method Detail |
public boolean equals(Object other)
public int hashCode()
public void merge(ByteRange range)
public void merge(Vector other)
other
- the Vector of ByteRange objectspublic void merge(ByteRangeList other)
other
- the ByteRangeList to be merged into thispublic Vector toVector()
public String toFtpCmdArgument()
toFtpCmdArgument
in interface RestartData
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |