code: public static byte[] readBytes(String path)
      {
          try
          {
              if (IOAdapter == null) return readBytesFromFileInputStream(new FileInputStream(path));
  
              InputStream is = IOAdapter.open(path);
              if (is instanceof FileInputStream)
                  return readBytesFromFileInputStream((FileInputStream) is);
              else
                  return readBytesFromOtherInputStream(is);
          }
          catch (Exception e)
          {
              logger.warning("读取" + path + "时发生异常" + e);
          }
  
          return null;
      }
docs: 将整个文件读取为字节数组
  
  @param path
  @return