mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 20:01:38 +00:00
27 lines
493 B
Plaintext
27 lines
493 B
Plaintext
import java.io.*;
|
|
|
|
public class CleanupExample {
|
|
public static void main(String[] args) throws IOException {
|
|
InputStream in = new FileInputStream(args[0]);
|
|
try {
|
|
OutputStream out = new FileOutputStream(args[1]);
|
|
try {
|
|
byte[] b = new byte[10000];
|
|
while (true) {
|
|
int r = in.read(b);
|
|
if (r == -1) break;
|
|
out.write(b, 0, r);
|
|
}
|
|
} finally {
|
|
if (out != null) {
|
|
out.close();
|
|
}
|
|
}
|
|
} finally {
|
|
if (in != null) {
|
|
in.close();
|
|
}
|
|
}
|
|
}
|
|
}
|