// Copyright 2003, FreeHEP.
package org.freehep.util.io.test;

import java.io.*;

import org.freehep.util.io.*;

/**
 *
 * @author Mark Donszelmann
 * @version $Id: Base64InputStreamTest.java,v 1.1 2003/04/12 19:10:49 duns Exp $
 */
public class Base64InputStreamTest {

    public static void main(String[] args) throws IOException {
        if (args.length != 1) {
            System.out.println("Usage: Base64InputStreamTest filename");
            System.exit(1);
        }

        Base64InputStream in = new Base64InputStream(new FileInputStream(args[0]));
        int b = in.read();
        while (b != -1) {
            System.out.write(b);
            b = in.read();
        }
        in.close();
        System.out.flush();
    }
}
