public final class ByteBufferUtil
extends java.lang.Object
ByteBuffer
s.Modifier and Type | Method and Description |
---|---|
static java.nio.ByteBuffer |
fromFile(java.io.File file) |
static java.nio.ByteBuffer |
fromStream(java.io.InputStream stream) |
static byte[] |
toBytes(java.nio.ByteBuffer byteBuffer) |
static void |
toFile(java.nio.ByteBuffer buffer,
java.io.File file) |
static java.io.InputStream |
toStream(java.nio.ByteBuffer buffer) |
static void |
toStream(java.nio.ByteBuffer byteBuffer,
java.io.OutputStream os) |
@NonNull public static java.nio.ByteBuffer fromFile(@NonNull java.io.File file) throws java.io.IOException
java.io.IOException
public static void toFile(@NonNull java.nio.ByteBuffer buffer, @NonNull java.io.File file) throws java.io.IOException
java.io.IOException
public static void toStream(@NonNull java.nio.ByteBuffer byteBuffer, @NonNull java.io.OutputStream os) throws java.io.IOException
java.io.IOException
@NonNull public static byte[] toBytes(@NonNull java.nio.ByteBuffer byteBuffer)
@NonNull public static java.io.InputStream toStream(@NonNull java.nio.ByteBuffer buffer)
@NonNull public static java.nio.ByteBuffer fromStream(@NonNull java.io.InputStream stream) throws java.io.IOException
java.io.IOException