public class ByteUtils extends Object
| Constructor and Description |
|---|
ByteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
bytesToDouble(byte[] bytes,
int off,
boolean bigEndian) |
static double |
bytesToDoubleBE(byte[] bytes,
int off) |
static double |
bytesToDoubleLE(byte[] bytes,
int off) |
static float |
bytesToFloat(byte[] bytes,
int off,
boolean bigEndian) |
static float |
bytesToFloatBE(byte[] bytes,
int off) |
static float |
bytesToFloatLE(byte[] bytes,
int off) |
static int |
bytesToInt(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToIntBE(byte[] bytes,
int off) |
static int |
bytesToIntLE(byte[] bytes,
int off) |
static long |
bytesToLong(byte[] bytes,
int off,
boolean bigEndian) |
static long |
bytesToLongBE(byte[] bytes,
int off) |
static long |
bytesToLongLE(byte[] bytes,
int off) |
static int |
bytesToShort(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToShortBE(byte[] bytes,
int off) |
static int |
bytesToShortLE(byte[] bytes,
int off) |
static void |
bytesToShorts(byte[] b,
short[] s,
int off,
int len,
boolean bigEndian) |
static void |
bytesToShortsBE(byte[] b,
short[] s,
int off,
int len) |
static void |
bytesToShortsLE(byte[] b,
short[] s,
int off,
int len) |
static int |
bytesToTag(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToTagBE(byte[] bytes,
int off) |
static int |
bytesToTagLE(byte[] bytes,
int off) |
static int |
bytesToUShort(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToUShortBE(byte[] bytes,
int off) |
static int |
bytesToUShortLE(byte[] bytes,
int off) |
static int |
bytesToVR(byte[] bytes,
int off) |
static byte[] |
charToByte(char c) |
static byte[] |
doubleToBytes(double d,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
doubleToBytesBE(double d,
byte[] bytes,
int off) |
static byte[] |
doubleToBytesLE(double d,
byte[] bytes,
int off) |
static byte[] |
floatToBytes(float f,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
floatToBytesBE(float f,
byte[] bytes,
int off) |
static byte[] |
floatToBytesLE(float f,
byte[] bytes,
int off) |
static byte[] |
getBytes(char[] chars) |
static byte[] |
intsToBytesLE(int... values) |
static byte[] |
intToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
intToBytesBE(int i,
byte[] bytes,
int off) |
static byte[] |
intToBytesLE(int i,
byte[] bytes,
int off) |
static byte[] |
longToBytes(long l,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
longToBytesBE(long l,
byte[] bytes,
int off) |
static byte[] |
longToBytesLE(long l,
byte[] bytes,
int off) |
static byte[] |
shortToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
shortToBytesBE(int i,
byte[] bytes,
int off) |
static byte[] |
shortToBytesLE(int i,
byte[] bytes,
int off) |
static byte[] |
swapInts(byte[] b,
int off,
int len) |
static byte[] |
swapLongs(byte[] b,
int off,
int len) |
static byte[][] |
swapShorts(byte[][] bs) |
static byte[] |
swapShorts(byte[] b,
int off,
int len) |
static byte[] |
tagToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
tagToBytesBE(int i,
byte[] bytes,
int off) |
static byte[] |
tagToBytesLE(int i,
byte[] bytes,
int off) |
public static int bytesToVR(byte[] bytes,
int off)
public static int bytesToUShort(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToUShortBE(byte[] bytes,
int off)
public static int bytesToUShortLE(byte[] bytes,
int off)
public static int bytesToShort(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToShortBE(byte[] bytes,
int off)
public static int bytesToShortLE(byte[] bytes,
int off)
public static void bytesToShorts(byte[] b,
short[] s,
int off,
int len,
boolean bigEndian)
public static void bytesToShortsLE(byte[] b,
short[] s,
int off,
int len)
public static void bytesToShortsBE(byte[] b,
short[] s,
int off,
int len)
public static int bytesToInt(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToIntBE(byte[] bytes,
int off)
public static int bytesToIntLE(byte[] bytes,
int off)
public static int bytesToTag(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToTagBE(byte[] bytes,
int off)
public static int bytesToTagLE(byte[] bytes,
int off)
public static float bytesToFloat(byte[] bytes,
int off,
boolean bigEndian)
public static float bytesToFloatBE(byte[] bytes,
int off)
public static float bytesToFloatLE(byte[] bytes,
int off)
public static long bytesToLong(byte[] bytes,
int off,
boolean bigEndian)
public static long bytesToLongBE(byte[] bytes,
int off)
public static long bytesToLongLE(byte[] bytes,
int off)
public static double bytesToDouble(byte[] bytes,
int off,
boolean bigEndian)
public static double bytesToDoubleBE(byte[] bytes,
int off)
public static double bytesToDoubleLE(byte[] bytes,
int off)
public static byte[] shortToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] shortToBytesBE(int i,
byte[] bytes,
int off)
public static byte[] shortToBytesLE(int i,
byte[] bytes,
int off)
public static byte[] intToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] intToBytesBE(int i,
byte[] bytes,
int off)
public static byte[] intToBytesLE(int i,
byte[] bytes,
int off)
public static byte[] tagToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] tagToBytesBE(int i,
byte[] bytes,
int off)
public static byte[] tagToBytesLE(int i,
byte[] bytes,
int off)
public static byte[] floatToBytes(float f,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] floatToBytesBE(float f,
byte[] bytes,
int off)
public static byte[] floatToBytesLE(float f,
byte[] bytes,
int off)
public static byte[] doubleToBytes(double d,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] doubleToBytesBE(double d,
byte[] bytes,
int off)
public static byte[] doubleToBytesLE(double d,
byte[] bytes,
int off)
public static byte[] longToBytes(long l,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] longToBytesBE(long l,
byte[] bytes,
int off)
public static byte[] longToBytesLE(long l,
byte[] bytes,
int off)
public static byte[][] swapShorts(byte[][] bs)
public static byte[] swapShorts(byte[] b,
int off,
int len)
public static byte[] swapInts(byte[] b,
int off,
int len)
public static byte[] swapLongs(byte[] b,
int off,
int len)
public static byte[] intsToBytesLE(int... values)
public static byte[] getBytes(char[] chars)
public static byte[] charToByte(char c)
Copyright © 2019. All rights reserved.