import sun.misc.*; import java.awt.*; import java.io.*; public class UCEncode { public static void main(String[] args) { if (args.length > 0) { for (int i = 0; i < args.length; i++) { try { InputStream is = new FileInputStream(args[i]); OutputStream os = new FileOutputStream(args[i] + ".uc"); UCEncoder ucec = new UCEncoder(); ucec.encodeBuffer(is, os); } catch (IOException e) { System.err.println(e); } } // end for } // end if } // end main }