public class BasicOutputBuffer extends OutputBuffer
Constructor and Description |
---|
BasicOutputBuffer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
|
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()
Gets the current position in the stream.
|
int |
pipe(java.io.DataOutput out)
Deprecated.
|
int |
pipe(java.io.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, writeString
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 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 int pipe(java.io.OutputStream out) throws java.io.IOException
OutputBuffer
pipe
in class OutputBuffer
out
- the stream to pipe tojava.io.IOException
- if the stream throws an exception@Deprecated public int pipe(java.io.DataOutput out) throws java.io.IOException
DataOutput
out
- the DataOutput
to pipe tojava.io.IOException
- if the stream throws an exception@Deprecated public java.lang.String asString()
asString
in class OutputBuffer
@Deprecated public java.lang.String asString(java.lang.String encoding) throws java.io.UnsupportedEncodingException
asString
in class OutputBuffer
java.io.UnsupportedEncodingException