/** encapsulates most of the proxy logic; some is shared in HTTP.java */
public static class Proxy {
- public Proxy() { }
-
public String httpProxyHost = null; ///< the HTTP Proxy host to use
public int httpProxyPort = -1; ///< the HTTP Proxy port to use
public String httpsProxyHost = null; ///< seperate proxy for HTTPS
/** the Builtin resource */
public static class Builtin extends Stream {
- public Builtin() { };
public String getCacheKey() throws NotCacheableException { throw new NotCacheableException(); }
public InputStream getInputStream() throws IOException { return Platform.getBuiltinInputStream(); }
}
public CallMarker(Interpreter cx) { pc = cx.pc + 1; scope = cx.scope; f = cx.f; }
}
- public static class CatchMarker { public CatchMarker() { } }
+ public static class CatchMarker { }
private static CatchMarker catchMarker = new CatchMarker();
public static class LoopMarker {
JS _unclone() { return this; }
public static class Cloneable extends JS {
- public Cloneable() { }
public Object jsclone() throws JSExn {
return new Clone(this);
}
spawnChildProcess(cmd);
}
- public POSIX() { }
}
protected native void eventThread();
private native void natInit();
- public X11() { }
public void postInit() {
natInit();
(new Thread() { public void run() { eventThread(); } }).start();
int readCFFOLDERs = 0; // the number of folders read in so far
int readCFFILEs = 0; // the number of folders read in so far
- public CFHEADER() { }
-
public void print(PrintStream ps) {
ps.println("CAB CFFILE CFHEADER v" + ((int)versionMajor) + "." + ((int)versionMinor));
ps.println(" total file size = " + fileSize);
*/
public class DirtyList {
- public DirtyList() { }
-
/** The dirty regions (each one is an int[4]). */
private int[][] dirties = new int[10][];
public abstract class Grammar extends JS {
public JS action = null;
- public Grammar() { }
// means we call()ed a Grammar that hasn't been bound to a scope yet
public Object call(Object a0, Object a1, Object a2, Object[] rest, int nargs) throws JSExn {
private int iterator = 0;
private int found = 0;
- public HashEnum () { }
-
public boolean hasMoreElements() {
return found < usedslots;
}
private int val = 0;
- public Semaphore() { };
-
/** Decrement the counter, blocking if zero. */
public synchronized void block() {
while(val == 0) {