public class PostAndUrlReader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AMP |
static int |
BLANK |
protected int |
c |
static int |
ch_0 |
static int |
ch_9 |
static int |
ch_a |
static int |
ch_A |
static int |
ch_f |
static int |
ch_F |
static Map<String,String> |
emptyMap |
static int |
eof |
static int |
EQ |
protected int |
expected |
protected InputStream |
in |
static int |
PERC |
static int |
PLUS |
static int |
QUEST |
Constructor and Description |
---|
PostAndUrlReader() |
Modifier and Type | Method and Description |
---|---|
protected int |
hexdigit(int c) |
Map<String,String> |
read(InputStream in,
int maxNum)
Decodes key/value pairs from an http connection message body, as with
a "post" method, and stores them to a map.
|
protected void |
readC() |
protected void |
readCC() |
Map<String,String> |
readUrl(String url)
Decodes key/value pairs from an http connection url value, as with the
"get" method, and stores them to a map.
|
public static final int QUEST
public static final int BLANK
public static final int PERC
public static final int PLUS
public static final int AMP
public static final int EQ
public static final int ch_A
public static final int ch_F
public static final int ch_a
public static final int ch_f
public static final int ch_0
public static final int ch_9
public static final int eof
protected int c
protected int expected
protected InputStream in
protected int hexdigit(int c) throws IOException
IOException
protected void readCC() throws IOException
IOException
protected void readC() throws IOException
IOException
public Map<String,String> readUrl(String url) throws IOException
QUEST
. This may be totally absent, then an empty
map is returned.IOException
public Map<String,String> read(InputStream in, int maxNum) throws IOException
IOException
see also the complete user documentation .