public class ByteRange extends Object
Modifier and Type | Class and Description |
---|---|
static class | ByteRange.Range |
Constructor and Description |
---|
ByteRange(List<ByteRange.Range> ranges) |
Modifier and Type | Method and Description |
---|---|
long | getEnd(int range) Gets the end of the specified range segment, or the number of bytes if this is a suffix range segment |
int | getRanges() |
long | getStart(int range) Gets the start of the specified range segment, of -1 if this is a suffix range segment |
static ByteRange | parse(String rangeHeader) Attempts to parse a range request. |
public ByteRange(List<ByteRange.Range> ranges)
public int getRanges()
public long getStart(int range)
range
- The range segment to getpublic long getEnd(int range)
range
- The range segment to getCopyright © 2015 JBoss by Red Hat. All rights reserved.