Constructor and Description |
---|
Range()
Unbounded Range
|
Range(long start)
Left-bounded range
|
Range(long start,
long end)
Left and right bounded range
|
Modifier and Type | Method and Description |
---|---|
static Range |
convert(String source)
Convert an HTTP Range header to a Range object
|
long |
end()
End of the range
|
boolean |
hasRange()
Does this range actually impose limits
|
long |
size()
Length contained in the range
|
long |
start()
Start of the range
|
public Range()
public Range(long start)
start
- the startpublic Range(long start, long end)
start
- the startend
- the endpublic boolean hasRange()
public long size()
public long start()
public long end()
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.