| java.lang.Object org.w3c.www.http.HttpBuffer
HttpBuffer | class HttpBuffer (Code) | | A cool StringBuffer like class, for converting header values to String.
Note that for good reasons, this class is not public.
|
Method Summary | |
final void | append(byte b) | final void | append(char ch) | final void | append(int i) | void | append(byte b, int o, int l) | final void | append(byte b) | void | append(String str) | void | append(String name, byte sep, String value) | void | append(String name, byte sep, int value) | void | append(String name, byte sep, String values) | void | append(double d) | final void | appendInt(int i) | final void | appendInt(int i, int padlen, byte pad) | final void | appendLong(long i) | final void | appendLong(long i, int padlen, byte pad) | void | appendQuoted(String str) | void | appendQuoted(String name, byte sep, String value) | void | appendQuoted(String name, byte sep, String values) | final public void | emit(OutputStream out) Emit the content of this byte buffer to the given output stream. | final void | ensureCapacity(int sz) | public byte[] | getByteCopy() Get a copy of the current byte buffer. | final public byte[] | getBytes() | final public int | length() | final public void | reset() | public String | toString() |
HttpBuffer | HttpBuffer(int size)(Code) | | |
append | final void append(byte b)(Code) | | |
append | final void append(char ch)(Code) | | |
append | final void append(int i)(Code) | | |
append | void append(byte b, int o, int l)(Code) | | |
append | final void append(byte b)(Code) | | |
append | void append(double d)(Code) | | |
appendInt | final void appendInt(int i)(Code) | | |
appendInt | final void appendInt(int i, int padlen, byte pad)(Code) | | |
appendLong | final void appendLong(long i)(Code) | | |
appendLong | final void appendLong(long i, int padlen, byte pad)(Code) | | |
emit | final public void emit(OutputStream out) throws IOException(Code) | | Emit the content of this byte buffer to the given output stream.
Parameters: out - The output stream to emit the content to. exception: IOException - If sone IO error occurs during emitting. |
ensureCapacity | final void ensureCapacity(int sz)(Code) | | |
getByteCopy | public byte[] getByteCopy()(Code) | | Get a copy of the current byte buffer.
|
getBytes | final public byte[] getBytes()(Code) | | |
length | final public int length()(Code) | | |
reset | final public void reset()(Code) | | |
|
|