@InterfaceAudience.Private public class ByteBufferWriterDataOutputStream extends DataOutputStream implements ByteBufferWriter
written
out
Constructor and Description |
---|
ByteBufferWriterDataOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
write(ByteBuffer b,
int off,
int len)
Writes
len bytes from the specified ByteBuffer starting at offset off |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
close, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeInt
write
public ByteBufferWriterDataOutputStream(OutputStream out)
public void write(ByteBuffer b, int off, int len) throws IOException
ByteBufferWriter
len
bytes from the specified ByteBuffer starting at offset off
write
in interface ByteBufferWriter
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.IOException
- if an I/O error occurs.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.