net.jpountz.util
Enum ByteBufferUtils
- java.lang.Object
-
- java.lang.Enum<ByteBufferUtils>
-
- net.jpountz.util.ByteBufferUtils
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ByteBufferUtils>
public enum ByteBufferUtils extends java.lang.Enum<ByteBufferUtils>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcheckNotReadOnly(java.nio.ByteBuffer buffer)static voidcheckRange(java.nio.ByteBuffer buf, int off)static voidcheckRange(java.nio.ByteBuffer buf, int off, int len)static java.nio.ByteBufferinLittleEndianOrder(java.nio.ByteBuffer buf)static java.nio.ByteBufferinNativeByteOrder(java.nio.ByteBuffer buf)static bytereadByte(java.nio.ByteBuffer buf, int i)static intreadInt(java.nio.ByteBuffer buf, int i)static intreadIntLE(java.nio.ByteBuffer buf, int i)static longreadLong(java.nio.ByteBuffer buf, int i)static longreadLongLE(java.nio.ByteBuffer buf, int i)static intreadShortLE(java.nio.ByteBuffer buf, int i)static ByteBufferUtilsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ByteBufferUtils[]values()Returns an array containing the constants of this enum type, in the order they are declared.static voidwriteByte(java.nio.ByteBuffer dest, int off, int i)static voidwriteInt(java.nio.ByteBuffer buf, int i, int v)static voidwriteLong(java.nio.ByteBuffer buf, int i, long v)static voidwriteShortLE(java.nio.ByteBuffer dest, int off, int i)
-
-
-
Method Detail
-
values
public static ByteBufferUtils[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteBufferUtils c : ByteBufferUtils.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteBufferUtils valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
checkRange
public static void checkRange(java.nio.ByteBuffer buf, int off, int len)
-
checkRange
public static void checkRange(java.nio.ByteBuffer buf, int off)
-
inLittleEndianOrder
public static java.nio.ByteBuffer inLittleEndianOrder(java.nio.ByteBuffer buf)
-
inNativeByteOrder
public static java.nio.ByteBuffer inNativeByteOrder(java.nio.ByteBuffer buf)
-
readByte
public static byte readByte(java.nio.ByteBuffer buf, int i)
-
writeInt
public static void writeInt(java.nio.ByteBuffer buf, int i, int v)
-
readInt
public static int readInt(java.nio.ByteBuffer buf, int i)
-
readIntLE
public static int readIntLE(java.nio.ByteBuffer buf, int i)
-
writeLong
public static void writeLong(java.nio.ByteBuffer buf, int i, long v)
-
readLong
public static long readLong(java.nio.ByteBuffer buf, int i)
-
readLongLE
public static long readLongLE(java.nio.ByteBuffer buf, int i)
-
writeByte
public static void writeByte(java.nio.ByteBuffer dest, int off, int i)
-
writeShortLE
public static void writeShortLE(java.nio.ByteBuffer dest, int off, int i)
-
checkNotReadOnly
public static void checkNotReadOnly(java.nio.ByteBuffer buffer)
-
readShortLE
public static int readShortLE(java.nio.ByteBuffer buf, int i)
-
-
DMelt 3.0 © DataMelt by jWork.ORG