@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 |
|---|---|
java.lang.String |
asAscii()
Deprecated.
|
java.lang.String |
asString(java.lang.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(java.io.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, writeStringpublic static final int BUF_SIZE
public void reset()
public int getPosition()
OutputBuffergetPosition in class OutputBuffer@Deprecated public void setPosition(int position)
setPosition in class OutputBufferposition - the position to set@Deprecated public void seekEnd()
seekEnd in class OutputBuffer@Deprecated public void seekStart()
seekStart in class OutputBufferpublic int size()
OutputBuffersize in class OutputBufferpublic void write(byte[] b)
write in class OutputBufferpublic void write(byte[] b,
int off,
int len)
write in class OutputBufferpublic void write(int b)
write in class OutputBufferpublic void truncateToPosition(int newPosition)
OutputBuffertruncateToPosition in class OutputBuffernewPosition - the position to truncate this buffer topublic int pipe(java.io.OutputStream out)
throws java.io.IOException
OutputBufferpipe in class OutputBufferout - the stream to pipe tojava.io.IOException - if the stream throws an exceptionpublic java.lang.String asAscii()
@Deprecated
public java.lang.String asString(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
asString in class OutputBufferjava.io.UnsupportedEncodingException