public class NonSyncDataOutputBuffer
extends java.io.DataOutputStream
| Constructor and Description |
|---|
NonSyncDataOutputBuffer()
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.
|
NonSyncDataOutputBuffer |
reset()
Resets the buffer to empty.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(java.io.DataInput in,
int length)
Writes bytes from a DataInput directly into the buffer.
|
void |
write(int b) |
flush, size, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic NonSyncDataOutputBuffer()
public byte[] getData()
getLength().public int getLength()
public NonSyncDataOutputBuffer reset()
public void write(java.io.DataInput in,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.DataOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in class java.io.DataOutputStreamjava.io.IOExceptionCopyright © 2012 The Apache Software Foundation