public class DataOutputBuffer extends DataOutputStream
writtenout| Constructor and Description |
|---|
DataOutputBuffer()
Constructs a new empty buffer.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Returns the current contents of the buffer.
|
int |
getLength()
Returns the length of the valid data currently in the buffer.
|
DataOutputBuffer |
reset()
Resets the buffer to empty.
|
void |
write(DataInput in,
int length)
Writes bytes from a DataInput directly into the buffer.
|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclose, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic byte[] getData()
getLength().public int getLength()
public DataOutputBuffer reset()
public void write(DataInput in, int length) throws IOException
IOExceptionCopyright © 2018 AddThis. All rights reserved.