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, writeUTF
public DataOutputBuffer()
public DataOutputBuffer(int size)
public void write(int b)
write
in interface java.io.DataOutput
write
in class java.io.DataOutputStream
public void write(byte[] b, int off, int len)
write
in interface java.io.DataOutput
write
in class java.io.DataOutputStream
public byte[] getData()
getLength()
.public int getLength()
Copyright © 2015 The Apache Software Foundation