com.sun.tools.javac
Class Server
java.lang.Object
com.sun.tools.javac.Server
- All Implemented Interfaces:
- java.lang.Runnable
class Server
- extends java.lang.Object
- implements java.lang.Runnable
Java Compiler Server. Can be used to speed up a set of (small)
compilation tasks by caching jar files between compilations.
This is NOT part of any API supported by Sun Microsystems.
If you write code that depends on this, you do so at your own
risk. This code and its internal interfaces are subject to change
or deletion without notice.
- Since:
- 1.6
|
Constructor Summary |
private |
Server(java.io.BufferedReader in,
java.io.OutputStream out)
|
private |
Server(java.io.BufferedReader in,
java.io.OutputStream out,
boolean isSocket)
|
private |
Server(java.net.Socket socket)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
private final java.io.BufferedReader in
out
private final java.io.OutputStream out
isSocket
private final boolean isSocket
tool
private static final JavaCompiler tool
logger
private static java.util.logging.Logger logger
fm
static StandardJavaFileManager fm
Server
private Server(java.io.BufferedReader in,
java.io.OutputStream out,
boolean isSocket)
Server
private Server(java.io.BufferedReader in,
java.io.OutputStream out)
Server
private Server(java.net.Socket socket)
throws java.io.IOException,
java.io.UnsupportedEncodingException
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
run
public void run()
- Specified by:
run in interface java.lang.Runnable
main
public static void main(java.lang.String... args)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
compile
private int compile(java.io.OutputStream out,
StandardJavaFileManager fm,
java.util.List<java.lang.String> args)