|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tool
Common interface for tools that can be invoked from a program. A tool is traditionally a command line program such as a compiler. The set of tools available with a platform is defined by the vendor.
Tools can be located using ServiceLoader.load(Class)
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 tool
NullPointerException
- if the array of arguments contains
any null
elements.Set<SourceVersion> getSourceVersions()
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.