docs: public static void write(final byte[] srcArray, File targetFile, final boolean overwrite) throws IOException {
          if (srcArray == null) {
              throw new IOException("Source must not be null");
          }
  
          if (targetFile == null) {
              throw new IOException("Target must not be null");
          }
  
          if (true == targetFile.exists()) {
              if (true == targetFile.isDirectory()) {
                  throw new IOException("Target '" + targetFile.getAbsolutePath() + "' is directory!");
              } else if (true == targetFile.isFile()) {
                  if (!overwrite) {
                      throw new IOException("Target file '" + targetFile.getAbsolutePath() + "' already exists!");
                  }
              } else {
                  throw new IOException("Invalid target object '" + targetFile.getAbsolutePath() + "'!");
              }
          } else {
              // create parent dir
              create(targetFile.getParentFile(), false, 3);
          }
  
          // 使用无拷贝的inputStream
          ByteArrayInputStream input = null;
          FileOutputStream output = null;
          try {
              input = new ByteArrayInputStream(srcArray);
              output = new FileOutputStream(targetFile);
              copy(input, output);
              output.flush();
          } finally {
              IOUtils.closeQuietly(input);
              IOUtils.closeQuietly(output);
          }
      }