|
|||||||||
| 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.HttpContentRange
public class HttpContentRange
| Field Summary |
|---|
| Fields inherited from class org.w3c.www.http.BasicValue |
|---|
isValid, raw, rlen, roff |
| Constructor Summary | |
|---|---|
HttpContentRange(boolean isValid,
java.lang.String unit,
int firstpos,
int lastpos,
int length)
|
|
| Method Summary | |
|---|---|
int |
getFirstPosition()
Get this range first position. |
int |
getFullLength()
Get this range entity full length. |
int |
getLastPosition()
Get this range last position. |
java.lang.String |
getUnit()
Get this content range's unit. |
java.lang.Object |
getValue()
HeaderValue implemenntation - Get this header value. |
protected void |
parse()
parse. |
void |
setFirstPosition(int firstpos)
Set this range first position. |
void |
setFullLength(int length)
Set this range entity full length. |
void |
setLastPosition(int lastpos)
Set this range last position. |
void |
setUnit(java.lang.String unit)
Set this content range's unit. |
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, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HttpContentRange(boolean isValid,
java.lang.String unit,
int firstpos,
int lastpos,
int length)
| Method Detail |
|---|
protected void parse()
throws HttpParserException
parse in class BasicValueHttpParserException - if parsing failed.protected void updateByteValue()
BasicValue
updateByteValue in class BasicValuepublic java.lang.Object getValue()
BasicValue
getValue in interface HeaderValuegetValue in class BasicValuepublic int getFirstPosition()
getUnit method.
public void setFirstPosition(int firstpos)
firstpos - The firt position of the range.public int getLastPosition()
getUnit method.
public void setLastPosition(int lastpos)
The - last position, as an integer.public int getFullLength()
public void setFullLength(int length)
length - The new full length for the entity, -1 if unknown.public java.lang.String getUnit()
public void setUnit(java.lang.String unit)
unit - The unit in which this range was measured.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||