Package ch.tocco.nice2.dms.impl.publish
Class Range
java.lang.Object
ch.tocco.nice2.dms.impl.publish.Range
Utility class for Range header values. See http://tools.ietf.org/html/rfc2616#section-14.35
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
firstPos
(int totalLength) fromEnumeration
(Enumeration headerValue) static Range
fromStart
(int firstPos) fromString
(String headerValue) Creates a `Range` object from a header value like "bytes=100-300".static Range
lastbytes
(int suffix) abstract int
lastPos
(int totalLength) static Range
range
(int firstPos, int lastPos) int
rangeLength
(int completeLength) toHeaderValue
(int totalLength)
-
Method Details
-
rangeLength
public int rangeLength(int completeLength) -
toHeaderValue
-
firstPos
public abstract int firstPos(int totalLength) -
lastPos
public abstract int lastPos(int totalLength) -
range
-
fromStart
-
lastbytes
-
fromEnumeration
-
fromString
Creates a `Range` object from a header value like "bytes=100-300".
-