aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/CleanupExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/CleanupExample_post.jpage')
-rw-r--r--usage_examples/CleanupExample_post.jpage26
1 files changed, 0 insertions, 26 deletions
diff --git a/usage_examples/CleanupExample_post.jpage b/usage_examples/CleanupExample_post.jpage
deleted file mode 100644
index 7e87c153..00000000
--- a/usage_examples/CleanupExample_post.jpage
+++ /dev/null
@@ -1,26 +0,0 @@
-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();
- }
- }
- }
-}