opendap/src/main/java/opendap/dap/DataDDS.java
private long copy(InputStream in, OutputStream out) throws IOException {
      long totalBytesRead = 0;
      byte[] buffer = new byte[8000];
      while (true) {
        int bytesRead = in.read(buffer);
        if (bytesRead == -1) break;
        out.write(buffer, 0, bytesRead);
        totalBytesRead += bytesRead;
      }
      return totalBytesRead;
    }
private long copy(InputStream in, OutputStream out) throws IOException {
      long totalBytesRead = 0;
      byte[] buffer = new byte[8000];
      while (true) {
        int bytesRead = in.read(buffer);
        if (bytesRead == -1) break;
        out.write(buffer, 0, bytesRead);
        totalBytesRead += bytesRead;
      }
      return totalBytesRead;
    }
private long copy ( InputStream in , OutputStream out ) throws IOException { long totalBytesRead = 0 ; byte [ ] buffer = new byte [ 8000 ] ; while ( true ) { int bytesRead = in . read ( buffer ) ; if ( bytesRead == - 1 ) break ; out . write ( buffer , 0 , bytesRead ) ; totalBytesRead += bytesRead ; } return totalBytesRead ; }
debug
debug