public class ByteRangeList extends Object implements RestartData
GridFTPRestartMarker| Modifier and Type | Field and Description |
|---|---|
protected Vector |
vector
vector of ByteRanges.
|
| Constructor and Description |
|---|
ByteRangeList() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Vector vector
public boolean equals(Object other)
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 RestartDataCopyright © 2013. All Rights Reserved.