1 19 package org.netbeans.modules.sendopts; 20 21 import java.io.File ; 22 import java.io.PrintStream ; 23 import java.io.PrintWriter ; 24 import org.netbeans.CLIHandler; 25 import org.netbeans.api.sendopts.CommandException; 26 import org.netbeans.api.sendopts.CommandLine; 27 import org.netbeans.modules.sendopts.*; 28 import org.openide.util.Lookup; 29 30 34 public class Handler extends CLIHandler { 35 38 public Handler() { 39 super(WHEN_EXTRA); 40 } 41 42 protected int cli(CLIHandler.Args args) { 43 return HandlerImpl.execute( 44 args.getArguments(), 45 args.getInputStream(), 46 args.getOutputStream(), 47 args.getErrorStream(), 48 args.getCurrentDirectory() 49 ); 50 } 51 52 protected void usage(PrintWriter w) { 53 HandlerImpl.usage(w); 54 } 55 } 56 | Popular Tags |