Top Constructors Methods
net.jpountz.util

public final Enum ByteBufferUtils

extends Enum<ByteBufferUtils>
Class Inheritance
Imports
java.nio.ByteBuffer, .ByteOrder, .ReadOnlyBufferException

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
checkRange(ByteBuffer buf, int off, int len)

public static void
checkRange(ByteBuffer buf, int off)

public static ByteBuffer
public static ByteBuffer
public static byte
readByte(ByteBuffer buf, int i)

public static int
readInt(ByteBuffer buf, int i)

public static int
readIntLE(ByteBuffer buf, int i)

public static long
readLong(ByteBuffer buf, int i)

public static long
readLongLE(ByteBuffer buf, int i)

public static int
readShortLE(ByteBuffer buf, int i)

public static ByteBufferUtils
public static ByteBufferUtils[]
public static void
writeByte(ByteBuffer dest, int off, int i)

public static void
writeInt(ByteBuffer buf, int i, int v)

public static void
writeLong(ByteBuffer buf, int i, long v)

public static void
writeShortLE(ByteBuffer dest, int off, int i)

Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Constructor Detail

ByteBufferUtilsback to summary
private ByteBufferUtils()

Method Detail

checkNotReadOnlyback to summary
public static void checkNotReadOnly(ByteBuffer buffer)
checkRangeback to summary
public static void checkRange(ByteBuffer buf, int off, int len)
checkRangeback to summary
public static void checkRange(ByteBuffer buf, int off)
inLittleEndianOrderback to summary
public static ByteBuffer inLittleEndianOrder(ByteBuffer buf)
inNativeByteOrderback to summary
public static ByteBuffer inNativeByteOrder(ByteBuffer buf)
readByteback to summary
public static byte readByte(ByteBuffer buf, int i)
readIntback to summary
public static int readInt(ByteBuffer buf, int i)
readIntLEback to summary
public static int readIntLE(ByteBuffer buf, int i)
readLongback to summary
public static long readLong(ByteBuffer buf, int i)
readLongLEback to summary
public static long readLongLE(ByteBuffer buf, int i)
readShortLEback to summary
public static int readShortLE(ByteBuffer buf, int i)
valueOfback to summary
public static ByteBufferUtils valueOf(String name)
valuesback to summary
public static ByteBufferUtils[] values()
writeByteback to summary
public static void writeByte(ByteBuffer dest, int off, int i)
writeIntback to summary
public static void writeInt(ByteBuffer buf, int i, int v)
writeLongback to summary
public static void writeLong(ByteBuffer buf, int i, long v)
writeShortLEback to summary
public static void writeShortLE(ByteBuffer dest, int off, int i)