public interface Tool
Tools can be located using ServiceLoader.load(Class).
| Modifier and Type | Method and Description | 
|---|---|
Set<SourceVersion> | 
getSourceVersions ()
Gets the source versions of the Java™ programming language
 supported by this tool. 
 | 
int | 
run (InputStream in,
 OutputStream out,
 OutputStream err,
 String... arguments)
Run the tool with the given I/O channels and arguments. 
 | 
int run(InputStream in, OutputStream out, OutputStream err, String... arguments)
out
 or err in some unspecified format.in - "standard" input; use System.in if nullout - "standard" output; use System.out if nullerr - "standard" error; use System.err if nullarguments - arguments to pass to the toolNullPointerException  - if the array of arguments contains
 any null elements.Set<SourceVersion> getSourceVersions()
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy. 
Scripting on this page tracks web page traffic, but does not change the content in any way.