content: package com.supeream.serial;
  
  //
  // Source code recreated from a .class file by IntelliJ IDEA
  // (powered by Fernflower decompiler)
  //
  
  import java.io.FileInputStream;
  
  public class BytesOperation {
  
  
      public static byte[] hexStringToBytes(String hexString) {
          if (hexString != null && !hexString.equals("")) {
              hexString = hexString.toUpperCase();
              int length = hexString.length() / 2;
              char[] hexChars = hexString.toCharArray();
              byte[] d = new byte[length];
  
              for (int i = 0; i < length; ++i) {
                  int pos = i * 2;
                  d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));
              }
  
              return d;
          } else {
              return null;
          }
      }
  
      private static byte charToByte(char c) {
          return (byte) "0123456789ABCDEF".indexOf(c);
      }
  
      public static byte[] byteMerger(byte[] byte_1, byte[] byte_2) {
          byte[] byte_3 = new byte[byte_1.length + byte_2.length];
          System.arraycopy(byte_1, 0, byte_3, 0, byte_1.length);
          System.arraycopy(byte_2, 0, byte_3, byte_1.length, byte_2.length);
          return byte_3;
      }
  
      public static String bytesToHexString(byte[] src) {
          StringBuilder stringBuilder = new StringBuilder("");
          if (src == null || src.length <= 0) {
              return null;
          }
          for (int i = 0; i < src.length; i++) {
              int v = src[i] & 0xFF;
              String hv = Integer.toHexString(v);
              if (hv.length() < 2) {
                  stringBuilder.append(0);
              }
              stringBuilder.append(hv);
          }
          return stringBuilder.toString();
      }
  
      public static byte[] GetByteByFile(String FilePath) throws Exception {
          FileInputStream fi = new FileInputStream(FilePath);
          byte[] temp = new byte[50000000];
          int length = fi.read(temp);
          byte[] file = new byte[length];
  
          for (int i = 0; i < length; ++i) {
              file[i] = temp[i];
          }
  
          fi.close();
          return file;
      }
  
      public static void main(String[] args) throws Exception {
          System.out.println(BytesOperation.bytesToHexString(BytesOperation.GetByteByFile("/Users/nike/IdeaProjects/weblogic_cmd/lib/remote.jar")));
      }
  }
  