|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.w3c.www.http.BasicValue
org.w3c.www.http.HttpRange
public class HttpRange
Field Summary | |
---|---|
protected int |
firstpos
First position in the range. |
protected int |
lastpos
Last position in the range. |
protected HttpRangeList |
list
The list we belong to, if any. |
protected java.lang.String |
unit
The range's unit. |
Fields inherited from class org.w3c.www.http.BasicValue |
---|
isValid, raw, rlen, roff |
Constructor Summary | |
---|---|
HttpRange()
|
Method Summary | |
---|---|
int |
getFirstPosition()
Get the first position of the range. |
int |
getLastPosition()
Get the last position for this range. |
java.lang.String |
getUnit()
Get the unit in which this range is taken. |
java.lang.Object |
getValue()
HeaderValue implemenntation - Get this header value. |
protected void |
invalidateByteValue()
Invalidate the current byte value for this header, if any. |
protected void |
parse()
parse. |
void |
setFirstPosition(int firstpos)
Set the first position of the range. |
void |
setLastPosition(int lastpos)
Set the last position for this range. |
void |
setUnit(java.lang.String unit)
Set the unit in which this range is taken. |
protected void |
updateByteValue()
Update the RFC822 compatible header value for this object. |
Methods inherited from class org.w3c.www.http.BasicValue |
---|
addBytes, appendValue, checkByteValue, clone, emit, error, setBytes, setString, toExternalForm, toString, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int firstpos
protected int lastpos
protected java.lang.String unit
protected HttpRangeList list
Constructor Detail |
---|
public HttpRange()
Method Detail |
---|
protected void parse() throws HttpParserException
parse
in class BasicValue
HttpParserException
- if parsing failed.protected void invalidateByteValue()
BasicValue
invalidateByteValue
in class BasicValue
protected void updateByteValue()
BasicValue
updateByteValue
in class BasicValue
public java.lang.Object getValue()
BasicValue
getValue
in interface HeaderValue
getValue
in class BasicValue
public int getFirstPosition()
public void setFirstPosition(int firstpos)
firstpos
- The first positon for the range.public int getLastPosition()
public void setLastPosition(int lastpos)
lastpos
- The new last position.public void setUnit(java.lang.String unit)
public java.lang.String getUnit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |