|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jkristian.io.FormEncodedOutput
public class FormEncodedOutput
A collection of objects used for generating a application/x-www-form-urlencoded document.
This class is not thread-safe.
Constructor Summary | |
---|---|
FormEncodedOutput(java.io.OutputStream raw,
java.lang.String encoding)
Deprecated. The preferred usage is new
FormEncodedOutput(encoding, new
BufferedOutputStream(raw, ...)) . |
|
FormEncodedOutput(java.lang.String encoding,
java.io.OutputStream output)
Set this.output = output; this.raw = null. |
Method Summary | |
---|---|
void |
close()
Close the streams that were instantiated by this object. |
protected void |
finalize()
|
void |
flush()
|
java.io.OutputStream |
getEncoderStream()
Bytes written to this stream will be URL-encoded and then written to the output stream. |
java.io.Writer |
getEncoderWriter()
Characters written to this stream will be encoded as bytes, which will be URL-encoded and then written to the output stream. |
java.lang.String |
getEncoding()
|
java.io.OutputStream |
getOutput()
|
java.io.OutputStream |
getRawOutput()
Deprecated. |
void |
writeParameter(java.lang.String name,
java.lang.String value)
Write a name/value pair in the format name=value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormEncodedOutput(java.lang.String encoding, java.io.OutputStream output) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public FormEncodedOutput(java.io.OutputStream raw, java.lang.String encoding) throws java.io.UnsupportedEncodingException
new
FormEncodedOutput(encoding, new
BufferedOutputStream(raw, ...))
.
java.io.UnsupportedEncodingException
Method Detail |
---|
public java.lang.String getEncoding()
public final java.io.OutputStream getRawOutput()
public final java.io.OutputStream getOutput()
public final java.io.OutputStream getEncoderStream()
public final java.io.Writer getEncoderWriter()
public void flush() throws java.io.IOException
java.io.IOException
public void close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void writeParameter(java.lang.String name, java.lang.String value) throws java.io.IOException
null
, do nothing.
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |