org.globus.ftp
public class ByteRangeList extends java.lang.Object implements RestartData
GridFTPRestartMarker
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
vector
vector of ByteRanges.
|
Constructor and Description |
---|
ByteRangeList() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.util.Vector vector
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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