@Deprecated public class PoolOutputBuffer extends OutputBuffer
Modifier and Type | Field and Description |
---|---|
static int |
BUF_SIZE
Deprecated.
|
Constructor and Description |
---|
PoolOutputBuffer()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
asAscii()
Deprecated.
|
String |
asString(String encoding)
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
int |
getPosition()
Deprecated.
Gets the current position in the stream.
|
int |
pipe(OutputStream out)
Deprecated.
Pipe the contents of this output buffer into the given output stream
|
void |
reset()
Deprecated.
|
void |
seekEnd()
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
void |
seekStart()
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
void |
setPosition(int position)
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
int |
size()
Deprecated.
Gets the output size in bytes.
|
void |
truncateToPosition(int newPosition)
Deprecated.
Truncates the buffer to the given new position, which must be greater than or equal to zero and less than or equal to the current
size of this buffer.
|
void |
write(byte[] b)
Deprecated.
|
void |
write(byte[] b,
int off,
int len)
Deprecated.
|
void |
write(int b)
Deprecated.
|
asString, backpatchSize, backpatchSize, hex, md5, toByteArray, toString, writeCString, writeDouble, writeInt, writeInt, writeIntBE, writeLong, writeString
close, flush
public static final int BUF_SIZE
public void reset()
public int getPosition()
OutputBuffer
getPosition
in class OutputBuffer
@Deprecated public void setPosition(int position)
setPosition
in class OutputBuffer
position
- the position to set@Deprecated public void seekEnd()
seekEnd
in class OutputBuffer
@Deprecated public void seekStart()
seekStart
in class OutputBuffer
public int size()
OutputBuffer
size
in class OutputBuffer
public void write(byte[] b)
write
in class OutputBuffer
public void write(byte[] b, int off, int len)
write
in class OutputBuffer
public void write(int b)
write
in class OutputBuffer
public void truncateToPosition(int newPosition)
OutputBuffer
truncateToPosition
in class OutputBuffer
newPosition
- the position to truncate this buffer topublic int pipe(OutputStream out) throws IOException
OutputBuffer
pipe
in class OutputBuffer
out
- the stream to pipe toIOException
- if the stream throws an exceptionpublic String asAscii()
@Deprecated public String asString(String encoding) throws UnsupportedEncodingException
asString
in class OutputBuffer
UnsupportedEncodingException