public class NioUtils
extends java.lang.Object
| Constructor and Description |
|---|
NioUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
write(java.nio.ByteBuffer byteBuffer,
java.io.OutputStream outputStream)
Write the contents of the given
ByteBuffer into a
OutputStream. |
public static void write(java.nio.ByteBuffer byteBuffer,
java.io.OutputStream outputStream)
throws java.io.IOException
ByteBuffer into a
OutputStream.byteBuffer - the buffer to read from.outputStream - the output stream to write to.java.io.IOException - if an error occurs.