@InterfaceAudience.Private
public interface ByteBufferWriter
ByteArrayOutputStream
,
ByteBufferOutputStream
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 |
void |
writeInt(int i)
Writes an
int to the underlying output stream as four bytes, high byte first. |
void write(ByteBuffer b, int off, int len) throws IOException
len
bytes from the specified ByteBuffer starting at offset off
b
- the data.off
- the start offset in the data.len
- the number of bytes to write.IOException
- if an I/O error occurs.void writeInt(int i) throws IOException
int
to the underlying output stream as four bytes, high byte first.i
- the int
to writeIOException
- if an I/O error occurs.Copyright © 2007–2019 Cloudera. All rights reserved.