package edu.vt.marian.Document; import java.io.*; import java.net.*; import java.util.*; import edu.vt.marian.common.*; /** Unit tester for MarcDocument (and thus MarcRecord) class. @author Robert France */ public class KscToUnicode { static private void showUsage() { System.err.println("usage: java KscToUnicode -i -o "); } public static void main(String argv[]) throws Exception { int Err; // Debug debug = new Debug("debug.conf", "trace.log", false); String inFile = "input"; String outFile = "output"; for (int i=0; i 0) { retVal = input.read(ch, 0, 1); output.write(ch); } } catch ( IOException e ) { System.err.println( "Error during read or write file:\n " + e.toString() ); System.exit( 1 ); } output.flush(); System.err.println("Normal EOF."); return; } }