Java Reference
In-Depth Information
if (this.boundary != null)
{
boundary();
writeName(name);
newline();
newline();
writeln(value);
} else
{
if (!this.first)
{
write("&");
}
write(encode(name));
write("=");
write(encode(value));
}
this.first = false;
}
/**
* Complete the building of the form.
*
* @throws IOException
* If any error occurs while writing.
*/
public void complete() throws IOException
{
if (this.boundary != null)
{
boundary();
writeln("--");
this.os.flush();
}
}
/**
* Generate a multipart form boundary.
*
* @throws IOException
* If any error occurs while writing.
*/
private void boundary() throws IOException
{
write("--");
write(this.boundary);
Search WWH ::




Custom Search