src/main/java/io/avaje/classpath/scanner/internal/FileCopyUtils.java
private static void copy(Reader in, Writer out) {
    try {
      char[] buffer = new char[4096];
      int bytesRead;
      while ((bytesRead = in.read(buffer)) != -1) {
        out.write(buffer, 0, bytesRead);
      }
      out.flush();
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    } finally {
      try {
        in.close();
      } catch (IOException ex) {
        //Ignore
      }
      try {
        out.close();
      } catch (IOException ex) {
        //Ignore
      }
    }
  }
/**
   * Copy the contents of the given Reader to the given Writer. Closes both when done.
   */
Copy the contents of the given Reader to the given Writer. Closes both when done.
Copy the contents of the given Reader to the given Writer . Closes both when done .
private static void copy(Reader in, Writer out) {
    try {
      char[] buffer = new char[4096];
      int bytesRead;
      while ((bytesRead = in.read(buffer)) != -1) {
        out.write(buffer, 0, bytesRead);
      }
      out.flush();
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    } finally {
      try {
        in.close();
      } catch (IOException ex) {
      }
      try {
        out.close();
      } catch (IOException ex) {
      }
    }
  }
private static void copy ( Reader in , Writer out ) { try { char [ ] buffer = new char [ 4096 ] ; int bytesRead ; while ( ( bytesRead = in . read ( buffer ) ) != - 1 ) { out . write ( buffer , 0 , bytesRead ) ; } out . flush ( ) ; } catch ( IOException e ) { throw new UncheckedIOException ( e ) ; } finally { try { in . close ( ) ; } catch ( IOException ex ) { } try { out . close ( ) ; } catch ( IOException ex ) { } } }
Copy the contents of the given Reader to the given Writer.
Copy the contents of the given Reader to the given Writer .
//Ignore //Ignore