public class Buffer
extends java.lang.Object
Uploadable
) is
not read until it is really used.Modifier and Type | Field and Description |
---|---|
protected FastByteBuffer |
last |
protected java.util.LinkedList<java.lang.Object> |
list |
protected int |
size |
Constructor and Description |
---|
Buffer() |
Modifier and Type | Method and Description |
---|---|
Buffer |
append(Buffer buffer)
Appends other buffer to this one.
|
Buffer |
append(char c)
Appends a char.
|
Buffer |
append(int number)
Appends a number.
|
Buffer |
append(java.lang.String string)
Appends string content to buffer.
|
Buffer |
append(Uploadable uploadable)
Appends
Uploadable to buffer. |
int |
size()
Returns buffer size.
|
void |
writeTo(java.io.OutputStream out)
Writes content to the output stream.
|
void |
writeTo(java.io.OutputStream out,
HttpProgressListener progressListener)
Writes content to the output stream, using progress listener to track the sending progress.
|
void |
writeTo(java.io.Writer writer)
Writes content to the writer.
|
protected java.util.LinkedList<java.lang.Object> list
protected FastByteBuffer last
protected int size
public Buffer append(java.lang.String string)
public Buffer append(char c)
public Buffer append(int number)
public Buffer append(Uploadable uploadable)
Uploadable
to buffer.public int size()
public void writeTo(java.io.Writer writer) throws java.io.IOException
java.io.IOException
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void writeTo(java.io.OutputStream out, HttpProgressListener progressListener) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team