public class WWWFormCodec extends Object
application/x-www-form-urlencoded codec.| 构造器和说明 |
|---|
WWWFormCodec() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
format(Iterable<? extends NameValuePair> params,
Charset charset)
Formats the list of
NameValuePair parameters into a application/x-www-form-urlencoded
content string. |
static void |
format(StringBuilder buf,
Iterable<? extends NameValuePair> params,
Charset charset)
Formats the list of
NameValuePair parameters into a application/x-www-form-urlencoded
content. |
static List<NameValuePair> |
parse(CharSequence s,
Charset charset)
Returns a list of
NameValuePair parameters parsed
from the application/x-www-form-urlencoded content. |
public static List<NameValuePair> parse(CharSequence s, Charset charset)
NameValuePair parameters parsed
from the application/x-www-form-urlencoded content.s - input text.charset - parameter charset.public static void format(StringBuilder buf, Iterable<? extends NameValuePair> params, Charset charset)
NameValuePair parameters into a application/x-www-form-urlencoded
content.buf - the content bufferparams - The from parameters.charset - The encoding to use.public static String format(Iterable<? extends NameValuePair> params, Charset charset)
NameValuePair parameters into a application/x-www-form-urlencoded
content string.params - The from parameters.charset - The encoding to use.Copyright © 2023. All rights reserved.