public class UrlEncodedFormWriter extends Object
| Constructor and Description |
|---|
UrlEncodedFormWriter()
Constructs an UrlEncodedFormWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String name,
String value)
Writes a string field value.
|
int |
getLength() |
void |
write(OutputStream os)
Writes the form data to the output stream.
|
public UrlEncodedFormWriter()
public void addField(String name, String value) throws IOException
name - the field name (required)value - the field valueIOException - on input/output errorspublic void write(OutputStream os) throws IOException
os - The output streamIOException - on input/output errorspublic int getLength()
Copyright © 2004–2018 Github. All rights reserved.