@Deprecated public class PoolOutputBuffer extends OutputBuffer
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PoolOutputBuffer.Position
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) char[] |
_chars
Deprecated.
|
private PoolOutputBuffer.Position |
_cur
Deprecated.
|
(package private) UTF8Encoding |
_encoding
Deprecated.
|
private PoolOutputBuffer.Position |
_end
Deprecated.
|
private static SimplePool<byte[]> |
_extra
Deprecated.
|
(package private) java.util.List<byte[]> |
_fromPool
Deprecated.
|
(package private) byte[] |
_mine
Deprecated.
|
static int |
BUF_SIZE
Deprecated.
|
private static java.lang.String |
DEFAULT_ENCODING_1
Deprecated.
|
private static java.lang.String |
DEFAULT_ENCODING_2
Deprecated.
|
| Constructor and Description |
|---|
PoolOutputBuffer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
_afterWrite()
Deprecated.
|
(package private) byte[] |
_cur()
Deprecated.
|
(package private) byte[] |
_get(int z)
Deprecated.
|
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
final byte[] _mine
final char[] _chars
final java.util.List<byte[]> _fromPool
final UTF8Encoding _encoding
private static final java.lang.String DEFAULT_ENCODING_1
private static final java.lang.String DEFAULT_ENCODING_2
private final PoolOutputBuffer.Position _cur
private final PoolOutputBuffer.Position _end
private static SimplePool<byte[]> _extra
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 tovoid _afterWrite()
byte[] _cur()
byte[] _get(int z)
public 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