public final class DataOutputBuffer
extends java.io.DataOutputStream
| Constructor and Description |
|---|
DataOutputBuffer() |
DataOutputBuffer(int size) |
| 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.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, size, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic DataOutputBuffer()
public DataOutputBuffer(int size)
public void write(int b)
write in interface java.io.DataOutputwrite in class java.io.DataOutputStreampublic void write(byte[] b,
int off,
int len)
write in interface java.io.DataOutputwrite in class java.io.DataOutputStreampublic byte[] getData()
getLength().public int getLength()
Copyright © 2015 The Apache Software Foundation