public class BasicOutputBuffer extends OutputBuffer
| Constructor and Description |
|---|
BasicOutputBuffer() |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
String |
asString(String encoding)
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
int |
getPosition()
Gets the current position in the stream.
|
int |
pipe(DataOutput out)
Deprecated.
|
int |
pipe(OutputStream out)
Pipe the contents of this output buffer into the given output stream
|
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()
Gets the output size in bytes.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
backpatchSize, backpatchSize, hex, md5, toByteArray, toString, truncateToPosition, writeCString, writeDouble, writeInt, writeInt, writeIntBE, writeLong, writeStringclose, flushpublic 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 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 int pipe(OutputStream out) throws IOException
OutputBufferpipe in class OutputBufferout - the stream to pipe toIOException - if the stream throws an exception@Deprecated public int pipe(DataOutput out) throws IOException
DataOutputout - the DataOutput to pipe toIOException - if the stream throws an exception@Deprecated public String asString()
asString in class OutputBuffer@Deprecated public String asString(String encoding) throws UnsupportedEncodingException
asString in class OutputBufferUnsupportedEncodingException