public final class ByteUtils extends Object
| 构造器和说明 |
|---|
ByteUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
endsWith(byte[] bytes,
byte[] suffix) |
static byte[] |
getBase64ByteArray(String base64) |
static byte[] |
getLocalByteArray(File res) |
static byte[] |
getUrlByteArray(String urlPath) |
static InputStream |
getUrlStream(String urlPath) |
static boolean |
startsWith(byte[] bytes,
byte[] prefix) |
static byte[] |
toByteArray(InputStream is) |
public static byte[] getUrlByteArray(String urlPath)
public static byte[] getLocalByteArray(File res)
public static byte[] getBase64ByteArray(String base64)
public static byte[] toByteArray(InputStream is)
public static InputStream getUrlStream(String urlPath) throws IOException
public static boolean startsWith(byte[] bytes,
byte[] prefix)
public static boolean endsWith(byte[] bytes,
byte[] suffix)
Copyright © 2022. All rights reserved.