59 return "";
60 }
61
62 /**
63 * Run the tool with the given I/O channels and arguments. By
64 * convention a tool returns 0 for success and nonzero for errors.
65 * Any diagnostics generated will be written to either {@code out}
66 * or {@code err} in some unspecified format.
67 *
68 * @param in "standard" input; use System.in if null
69 * @param out "standard" output; use System.out if null
70 * @param err "standard" error; use System.err if null
71 * @param arguments arguments to pass to the tool
72 * @return 0 for success; nonzero otherwise
73 * @throws NullPointerException if the array of arguments contains
74 * any {@code null} elements.
75 */
76 int run(InputStream in, OutputStream out, OutputStream err, String... arguments);
77
78 /**
79 * Returns the source versions of the Java™ programming language
80 * supported by this tool.
81 * @return a set of supported source versions
82 */
83 Set<SourceVersion> getSourceVersions();
84
85 }
|
59 return "";
60 }
61
62 /**
63 * Run the tool with the given I/O channels and arguments. By
64 * convention a tool returns 0 for success and nonzero for errors.
65 * Any diagnostics generated will be written to either {@code out}
66 * or {@code err} in some unspecified format.
67 *
68 * @param in "standard" input; use System.in if null
69 * @param out "standard" output; use System.out if null
70 * @param err "standard" error; use System.err if null
71 * @param arguments arguments to pass to the tool
72 * @return 0 for success; nonzero otherwise
73 * @throws NullPointerException if the array of arguments contains
74 * any {@code null} elements.
75 */
76 int run(InputStream in, OutputStream out, OutputStream err, String... arguments);
77
78 /**
79 * Returns the source versions of the Java programming language
80 * supported by this tool.
81 * @return a set of supported source versions
82 */
83 Set<SourceVersion> getSourceVersions();
84
85 }
|