Top Constructors Methods
net.jpountz.util

public final Enum SafeUtils

extends Enum<SafeUtils>
Class Inheritance
Imports
java.nio.ByteOrder

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
checkLength(int len)

public static void
checkRange(byte[] buf, int off)

public static void
checkRange(byte[] buf, int off, int len)

public static byte
readByte(byte[] buf, int i)

public static int
readInt(byte[] buf, int i)

public static int
readInt(int[] buf, int off)

public static int
readIntBE(byte[] buf, int i)

public static int
readIntLE(byte[] buf, int i)

public static long
readLongLE(byte[] buf, int i)

public static int
readShort(short[] buf, int off)

public static int
readShortLE(byte[] buf, int i)

public static SafeUtils
public static SafeUtils[]
public static void
writeByte(byte[] dest, int off, int i)

public static void
writeInt(int[] buf, int off, int v)

public static void
writeShort(short[] buf, int off, int v)

public static void
writeShortLE(byte[] buf, int off, int v)

Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Constructor Detail

SafeUtilsback to summary
private SafeUtils()

Method Detail

checkLengthback to summary
public static void checkLength(int len)
checkRangeback to summary
public static void checkRange(byte[] buf, int off)
checkRangeback to summary
public static void checkRange(byte[] buf, int off, int len)
readByteback to summary
public static byte readByte(byte[] buf, int i)
readIntback to summary
public static int readInt(byte[] buf, int i)
readIntback to summary
public static int readInt(int[] buf, int off)
readIntBEback to summary
public static int readIntBE(byte[] buf, int i)
readIntLEback to summary
public static int readIntLE(byte[] buf, int i)
readLongLEback to summary
public static long readLongLE(byte[] buf, int i)
readShortback to summary
public static int readShort(short[] buf, int off)
readShortLEback to summary
public static int readShortLE(byte[] buf, int i)
valueOfback to summary
public static SafeUtils valueOf(String name)
valuesback to summary
public static SafeUtils[] values()
writeByteback to summary
public static void writeByte(byte[] dest, int off, int i)
writeIntback to summary
public static void writeInt(int[] buf, int off, int v)
writeShortback to summary
public static void writeShort(short[] buf, int off, int v)
writeShortLEback to summary
public static void writeShortLE(byte[] buf, int off, int v)