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, writeUTF
public void write(int b)
AbstractDataOutput
oneByte
to this RandomAccessFile
starting at the current file pointer. Only the low order byte of
oneByte
is written.write
in interface java.io.DataOutput
write
in class AbstractDataOutput
b
- the byte to be writtenpublic void write(byte[] b, int off, int len)
AbstractDataOutput
count
bytes from the byte array buffer
starting at offset
to this RandomAccessFile starting at
the current file pointer..write
in interface java.io.DataOutput
write
in class AbstractDataOutput
b
- 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 DataOutputPlus
write
in class AbstractDataOutput
java.io.IOException
Copyright © 2016 The Apache Software Foundation