49 * @param args The command line parameters. 50 */ 51 public static void main(String... args) { 52 System.exit(execute(args)); 53 } 54 55 /** 56 * Programmatic interface. 57 * 58 * @param args The command line parameters. 59 * @return The return code. 60 */ 61 public static int execute(String... args) { 62 Start jdoc = new Start(); 63 return jdoc.begin(args); 64 } 65 66 /** 67 * Programmatic interface. 68 * 69 * @param writer PrintWriter to receive notice messages. 70 * @param args The command line parameters. 71 * @return The return code. 72 */ 73 public static int execute(String[] args, PrintWriter writer) { 74 Start jdoc = new Start(writer); 75 return jdoc.begin(args); 76 } 77 } | 49 * @param args The command line parameters. 50 */ 51 public static void main(String... args) { 52 System.exit(execute(args)); 53 } 54 55 /** 56 * Programmatic interface. 57 * 58 * @param args The command line parameters. 59 * @return The return code. 60 */ 61 public static int execute(String... args) { 62 Start jdoc = new Start(); 63 return jdoc.begin(args); 64 } 65 66 /** 67 * Programmatic interface. 68 * 69 * @param writer a stream for all output 70 * @param args The command line parameters. 71 * @return The return code. 72 */ 73 public static int execute(String[] args, PrintWriter writer) { 74 Start jdoc = new Start(writer, writer); 75 return jdoc.begin(args); 76 } 77 78 /** 79 * Programmatic interface. 80 * 81 * @param outWriter a stream for expected output 82 * @param errWriter a stream for diagnostic output 83 * @param args The command line parameters. 84 * @return The return code. 85 */ 86 public static int execute(String[] args, PrintWriter outWriter, PrintWriter errWriter) { 87 Start jdoc = new Start(outWriter, errWriter); 88 return jdoc.begin(args); 89 } 90 } |