类 ByteUtils


  • public final class ByteUtils
    extends Object
    • 构造器详细资料

      • ByteUtils

        public ByteUtils()
    • 方法详细资料

      • getUrlByteArray

        public static byte[] getUrlByteArray​(String urlPath)
      • getLocalByteArray

        public static byte[] getLocalByteArray​(File res)
      • getBase64ByteArray

        public static byte[] getBase64ByteArray​(String base64)
      • toByteArray

        public static byte[] toByteArray​(InputStream is)
      • startsWith

        public static boolean startsWith​(byte[] bytes,
                                         byte[] prefix)
      • endsWith

        public static boolean endsWith​(byte[] bytes,
                                       byte[] suffix)