public abstract class AbstractRange extends Header
ExcludeStartRange - take the object starting from position x until the endFirstPartRange - take the first x bytes of the object, starting at position 0MidPartRange - take the object from offset for a certain lengthLastPartRange - take the last x bytes, starting at the end minus x until the end| Modifier and Type | Field and Description |
|---|---|
protected long |
length |
protected long |
offset |
java.lang.String |
RANGE_HEADER_NAME |
java.lang.String |
RANGE_HEADER_VALUE_PREFIX |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRange(long offset,
long length) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
copy(byte[] original) |
abstract long |
getFrom(int byteArrayLength) |
java.lang.String |
getHeaderName()
Returns the header name that must be set in the request.
|
java.lang.String |
getHeaderValue()
Returns the value that must be set in the request.
|
abstract long |
getTo(int byteArrayLength) |
convertResponseHeader, getResponseHeadersStartingWith, headerNotEmpty, setHeaderpublic java.lang.String RANGE_HEADER_NAME
public java.lang.String RANGE_HEADER_VALUE_PREFIX
protected long offset
protected long length
public java.lang.String getHeaderValue()
HeadergetHeaderValue in class Headerpublic java.lang.String getHeaderName()
HeadergetHeaderName in class Headerpublic abstract long getFrom(int byteArrayLength)
public abstract long getTo(int byteArrayLength)
public byte[] copy(byte[] original)
Copyright © 2012-2020 42 BV. All Rights Reserved.