public class Bytes extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static byte[] |
EMPTY_BYTES |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
byteArray(InputStream in) |
static byte[] |
byteArray(int times,
java.util.function.IntUnaryOperator mapper) |
static byte[] |
byteArray(String hex) |
static byte[] |
fillArray(byte[] buf,
int from,
int times,
java.util.function.IntUnaryOperator mapper) |
static byte[] |
forEach(byte[] buf,
IntByteConsumer consumer) |
static int |
toIntResult(byte[] buf,
int beginVal,
IntByteOperator mapper) |
static int |
toIntResult(byte[] buf,
int from,
int byteCnt,
int beginVal,
IntByteOperator mapper) |
static long |
toLongResult(byte[] buf,
long beginVal,
LongByteOperator mapper) |
static String |
toString(byte[] buf) |
static String |
toString(byte[] buf,
CharSequence delimiter) |
static String |
toString(byte[] buf,
int from,
int size) |
static String |
toString(byte[] buf,
int from,
int size,
CharSequence delimiter) |
static String |
toString(IBytesRange bytesRange) |
static String |
toString(IBytesRange bytesRange,
CharSequence delimiter) |
public static byte[] byteArray(String hex)
public static byte[] byteArray(InputStream in)
public static byte[] byteArray(int times,
java.util.function.IntUnaryOperator mapper)
public static byte[] fillArray(byte[] buf,
int from,
int times,
java.util.function.IntUnaryOperator mapper)
public static byte[] forEach(byte[] buf,
IntByteConsumer consumer)
public static int toIntResult(byte[] buf,
int beginVal,
IntByteOperator mapper)
public static int toIntResult(byte[] buf,
int from,
int byteCnt,
int beginVal,
IntByteOperator mapper)
public static long toLongResult(byte[] buf,
long beginVal,
LongByteOperator mapper)
public static String toString(byte[] buf)
public static String toString(byte[] buf, CharSequence delimiter)
public static String toString(byte[] buf, int from, int size)
public static String toString(byte[] buf, int from, int size, CharSequence delimiter)
public static String toString(IBytesRange bytesRange)
public static String toString(IBytesRange bytesRange, CharSequence delimiter)
Copyright © 2022. All rights reserved.