Package org.fcrepo.http.commons.domain
Class Range
- java.lang.Object
-
- org.fcrepo.http.commons.domain.Range
-
-
Constructor Summary
Constructors Constructor Description Range(long start)
Left-bounded range
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Range
convert(String source)
Convert an HTTP Range header to a Range objectlong
end()
End of the rangeboolean
hasRange()
Does this range actually impose limitslong
size()
Length contained in the rangelong
start()
Start of the range
-
-
-
Constructor Detail
-
Range
public Range(long start)
Left-bounded range- Parameters:
start
- the start
-
-
Method Detail
-
hasRange
public boolean hasRange()
Does this range actually impose limits- Returns:
- true if the range imposes limits
-
size
public long size()
Length contained in the range- Returns:
- length of the range
-
start
public long start()
Start of the range- Returns:
- start of the range
-
end
public long end()
End of the range- Returns:
- end of the range
-
-