|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.jigsaw.forms.URLDecoder
Form data decoder. This class takes an InputStream and decodes it in compliance to the application/x-www-form-urlencoded MIME type.
Field Summary | |
static java.lang.String |
EMPTY_VALUE
|
Constructor Summary | |
URLDecoder(java.io.InputStream in)
Create an URLDecoder for the given stream. |
|
URLDecoder(java.io.InputStream in,
boolean overide)
Create an URLDecoder for the given stream. |
|
URLDecoder(java.io.Reader in)
Create an URLDecoder for the given stream. |
|
URLDecoder(java.io.Reader in,
boolean overide)
Create an URLDecoder for the given stream. |
Method Summary | |
protected void |
addVariable(java.lang.String var,
java.lang.String val)
Define a new variable in this data set. |
java.lang.String[] |
getMultipleValues(java.lang.String name)
Get the values of the variable, as an array. |
java.lang.String |
getValue(java.lang.String name)
Get the value of a variable. |
java.util.Enumeration |
keys()
Get an enumeration of the variable names. |
java.util.Hashtable |
parse()
Parse our input stream following the application/x-www-form-urlencoded specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EMPTY_VALUE
Constructor Detail |
public URLDecoder(java.io.Reader in, boolean overide)
in
- The input stream to be parsed.public URLDecoder(java.io.Reader in)
in
- The input stream to be parsed.public URLDecoder(java.io.InputStream in, boolean overide)
in
- The input stream to be parsed.public URLDecoder(java.io.InputStream in)
in
- The input stream to be parsed.Method Detail |
public java.util.Enumeration keys()
protected void addVariable(java.lang.String var, java.lang.String val)
public java.lang.String[] getMultipleValues(java.lang.String name)
I use this in the PICS label bureau, and I pretty sure this is not a good reason to have it here.
name
- The name of the variable to look for.
public java.lang.String getValue(java.lang.String name)
name
- The name of the variable whose value is to be fetched.
public java.util.Hashtable parse() throws java.io.IOException, URLDecoderException
java.io.IOException
- When IO error occurs while reading the stream.
URLDecoderException
- If the format is invalid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |