public final class DataOutputByteBuffer extends AbstractDataOutput
| Constructor and Description |
|---|
DataOutputByteBuffer(java.nio.ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b,
int off,
int len)
Writes
count bytes from the byte array buffer
starting at offset to this RandomAccessFile starting at
the current file pointer.. |
void |
write(java.nio.ByteBuffer buffer) |
void |
write(int b)
Writes the specified byte
oneByte to this RandomAccessFile
starting at the current file pointer. |
write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic void write(int b)
AbstractDataOutputoneByte to this RandomAccessFile
starting at the current file pointer. Only the low order byte of
oneByte is written.write in interface java.io.DataOutputwrite in class AbstractDataOutputb - the byte to be writtenpublic void write(byte[] b,
int off,
int len)
AbstractDataOutputcount bytes from the byte array buffer
starting at offset to this RandomAccessFile starting at
the current file pointer..write in interface java.io.DataOutputwrite in class AbstractDataOutputb - the bytes to be writtenoff - offset in buffer to get byteslen - number of bytes in buffer to writepublic void write(java.nio.ByteBuffer buffer)
throws java.io.IOException
write in interface DataOutputPluswrite in class AbstractDataOutputjava.io.IOExceptionCopyright © 2015 The Apache Software Foundation