public class UrlEncodedFormWriter
extends java.lang.Object
| Constructor and Description |
|---|
UrlEncodedFormWriter()
Constructs an UrlEncodedFormWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addField(java.lang.String name,
java.lang.String value)
Writes a string field value.
|
int |
getLength() |
void |
write(java.io.OutputStream os)
Writes the form data to the output stream.
|
public UrlEncodedFormWriter()
public void addField(java.lang.String name,
java.lang.String value)
throws java.io.IOException
name - the field name (required)value - the field valuejava.io.IOException - on input/output errorspublic void write(java.io.OutputStream os)
throws java.io.IOException
os - The output streamjava.io.IOException - on input/output errorspublic int getLength()
Copyright © 2004-2014 Codehaus. All Rights Reserved.