Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mitzimorris committed Dec 5, 2013
1 parent 95b3b47 commit 302362f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
Binary file removed src/chars/foo.html
Binary file not shown.
31 changes: 0 additions & 31 deletions src/io/src/com/colloquial/io/CopyFile.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.colloquial.io;

import com.aliasi.util.Streams;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
Expand Down Expand Up @@ -29,34 +27,5 @@ public static void main(String[] args)
/*x*/
}

public static void main2(String[] args)
throws FileNotFoundException, IOException {

File fileIn = new File(args[0]);
File fileOut = new File(args[1]);
/*x CopyFile.2 */
InputStream in = null;
try {
in = new FileInputStream(fileIn);
OutputStream out = null;
try {
out = new FileOutputStream(fileOut);
byte[] buf = new byte[8192];
int n;
try {
while ((n = in.read(buf)) >= 0)
out.write(buf,0,n);
} catch (IOException e) {
fileOut.delete();
throw e;
}
} finally {
Streams.closeQuietly(out);
}
} finally {
Streams.closeQuietly(in);
}
/*x*/
}

}

0 comments on commit 302362f

Please sign in to comment.