RestartData
public class ByteRangeList extends Object implements RestartData
GridFTPRestartMarker
Modifier and Type | Field | Description |
---|---|---|
protected Vector |
vector |
vector of ByteRanges.
|
Constructor | Description |
---|---|
ByteRangeList() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object other) |
|
int |
hashCode() |
|
void |
merge(Vector other) |
Merge into this list all the ranges contained
in the given vector using merge(ByteRange).
|
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).
|
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 RestartData
Copyright © 2018. All rights reserved.