|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ftp.ByteRangeList
public class 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 java.util.Vector |
vector
vector of ByteRanges. |
| Constructor Summary | |
|---|---|
ByteRangeList()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.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(java.util.Vector other)
Merge into this list all the ranges contained in the given vector using merge(ByteRange). |
java.lang.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 |
java.util.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 java.util.Vector vector
| Constructor Detail |
|---|
public ByteRangeList()
| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void merge(ByteRange range)
public void merge(java.util.Vector other)
other - the Vector of ByteRange objectspublic void merge(ByteRangeList other)
other - the ByteRangeList to be merged into thispublic java.util.Vector toVector()
public java.lang.String toFtpCmdArgument()
toFtpCmdArgument in interface RestartData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||