rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public String getCommandPath() { return (cmdpath); }
public String getCommandPath() { return command; }
public String getCommandPath() { return (cmdpath);}
public int hashCode() { return (cmdpath.hashCode()); }
public int hashCode() { int h = command == null ? 0 : command.hashCode(); for (int i = 0; i < options.length; i++) h ^= options[i].hashCode(); return h; }
public int hashCode() { return (cmdpath.hashCode()); // Not a very good hash code.}
public boolean equals(Object obj) { throw new Error("Not implemented"); }
public boolean equals(Object obj) { if (obj instanceof ActivationGroupDesc) { ActivationGroupDesc that = (ActivationGroupDesc) obj; if (hash == 0) hashCode(); if (that.hash == 0) that.hashCode(); if (hash != that.hash) return false; if (! eq(className, that.className)) return false; if (! eq(data, that.data)) retu...
public boolean equals(Object obj) { throw new Error("Not implemented");}
public String getClassName() { throw new Error("Not implemented"); }
public String getClassName() { return className; }
public String getClassName() { throw new Error("Not implemented");}
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { throw new Error("Not implemented"); }
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { return env; }
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { throw new Error("Not implemented");}
public MarshalledObject getData() { throw new Error("Not implemented"); }
public MarshalledObject getData() { return data; }
public MarshalledObject getData() { throw new Error("Not implemented");}
public String getLocation() { throw new Error("Not implemented"); }
public String getLocation() { return location; }
public String getLocation() { throw new Error("Not implemented");}
public Properties getPropertyOverrides() { throw new Error("Not implemented"); }
public Properties getPropertyOverrides() { return props; }
public Properties getPropertyOverrides() { throw new Error("Not implemented");}
public int hashCode() { throw new Error("Not implemented"); }
public int hashCode() { if (hash==0) { Adler32 adler = new Adler32(); if (className!=null) adler.update(className.getBytes()); if (data!=null) adler.update(data.hashCode()); if (env!=null) adler.update(env.hashCode()); if (location!=null) adler.update(location.getBytes()); if (props!=null) { Enumeration en = props.p...
public int hashCode() { throw new Error("Not implemented");}
public PopupMenu() { }
PopupMenu() { }
public PopupMenu() { }
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) {
show(Component component, int x, int y) { if (getPeer() == null) this.addNotify(); PopupMenuPeer pmp = (PopupMenuPeer)getPeer(); if (pmp != null) {
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
pmp.show(component, x, y); }
pmp.show (component, x, y);
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
}
public void show(Component component, int x, int y) { PopupMenuPeer pmp = (PopupMenuPeer) getPeer(); if (pmp != null) { /* XXX Event e = new Event (component, Event.ACTION_EVENT, component); e.x = x; e.y = y;*/ pmp.show(component, x, y); } }
return "JViewport";
return "ViewportUI";
public String getUIClassID() { return "JViewport"; }
double g1, double g2, Color c1, Color c2, Color c3)
float g1, float g2, Color c1, Color c2, Color c3, int[][] mask)
static void paintHorizontalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (w * g1); ...
g.drawLine(xc, y, xc, y + h);
if (mask != null) { y0 = mask[xc - x0][0] + y; y1 = mask[xc - x0][1] + y; } g.drawLine(xc, y0, xc, y1);
static void paintHorizontalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (w * g1); ...
Color c3)
Color c3, int[][] mask)
static void paintVerticalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (h * g1); // T...
g.drawLine(x, yc, x + w, yc);
if (mask != null) { x0 = mask[yc - y0][0] + x; x1 = mask[yc - y0][1] + x; } g.drawLine(x0, yc, x1, yc);
static void paintVerticalGradient(Graphics g, int x, int y, int w, int h, double g1, double g2, Color c1, Color c2, Color c3) { // Calculate the coordinates. // The size of the first gradient area (c1->2). int w1 = (int) (h * g1); // T...
return ((LocalRequest) sr.request).s_invoke(handler);
{ LocalRequest lrq = (LocalRequest) sr.request; return lrq.s_invoke(handler); } } catch (gnuForwardRequest f) { try { return ((ObjectImpl) f.forward_reference)._invoke(f.forward_reference._request( operation, true ) ); } catch (RemarshalException e) { throw new NO_IMPLEMENT(); } }
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, false); if (handler...
val = unescapeString(val);
static void parseParams(DomNode node, AppletTag t) { boolean ja = false; boolean jb = false; boolean jc = false; NodeList l = node.getChildNodes(); int size = l.getLength(); if (size != 0) for (int i = 0; i < size; i++) { Object c = l.item(i); if (! (c instanceof D...
byte[] digest = { (byte) a, (byte) (a >>> 8), (byte) (a >>> 16), (byte) (a >>> 24), (byte) b, (byte) (b >>> 8), (byte) (b >>> 16), (byte) (b >>> 24), (byte) c, (byte) (c >>> 8), (byte) (c >>> 16), (byte) (c >>> 24), (byte) d, (byte) (d >>> 8), (byte) (d >>> 16), (byte) (d >>> 24) }; return digest;
return new byte[] { (byte) a, (byte)(a >>> 8), (byte)(a >>> 16), (byte)(a >>> 24), (byte) b, (byte)(b >>> 8), (byte)(b >>> 16), (byte)(b >>> 24), (byte) c, (byte)(c >>> 8), (byte)(c >>> 16), (byte)(c >>> 24), (byte) d, (byte)(d >>> 8), (byte)(d >>> 16), (byte)(d >>> 24) };
protected byte[] getResult() { byte[] digest = { (byte) a, (byte) (a >>> 8), (byte) (a >>> 16), (byte) (a >>> 24), (byte) b, (byte) (b >>> 8), (byte) (b >>> 16), (byte) (b >>> 24), (byte) c, (byte) (c >>> 8), (byte) (c >>> 16), (byte) (c >>> 24), ...
valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD4().digest())));
String d = Util.toString(new MD4().digest()); valid = Boolean.valueOf(DIGEST0.equals(d));
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD4().digest()))); } return valid.booleanValue(); }
public void mark(long mark)
public void mark(int mark)
public void mark(long mark) { }
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException
public final byte[] update(byte[] input) throws IllegalStateException
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException { if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBuffer...
if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBufferException(); } System.arraycopy(input, inputOffset, output, outputOffset, inputLength); return inputLength; } if (state != ENCRYPT_MODE && state != DECRYPT_MODE) { throw new IllegalStateException( "cipher is not for encrypti...
return update(input, 0, input.length);
public final int update(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IllegalStateException, ShortBufferException { if (cipherSpi == null) { if (inputLength > output.length - outputOffset) { throw new ShortBuffer...
byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), (byte) h2, (byte) (h2 >>> 8), (byte) (h2 >>> 16), (byte) (h2 >>> 24), (byte) h3, (byte) (h3 >>> 8), (byte) (h3 >>> 16), (byte) (h3 >>> 24), (byte) h4, ...
return new byte[] { (byte) h0, (byte)(h0 >>> 8), (byte)(h0 >>> 16), (byte)(h0 >>> 24), (byte) h1, (byte)(h1 >>> 8), (byte)(h1 >>> 16), (byte)(h1 >>> 24), (byte) h2, (byte)(h2 >>> 8), (byte)(h2 >>> 16), (byte)(h2 >>> 24), (byte) h3, (byte)(h3 >>> 8), (byte)(h3 >>> 16), (byte)(h3 >>> 24), (byte) h4, (byte)(h4 >>> 8), (by...
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD160().digest())));
String d = Util.toString(new RipeMD160().digest()); valid = Boolean.valueOf(DIGEST0.equals(d));
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); }
{ X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) << 16 | in[offset++] << 24; }
X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) << 16 | in[offset++] << 24;
protected void transform(byte[] in, int offset) { int A, B, C, D, E, Ap, Bp, Cp, Dp, Ep, T, s, i; // encode 64 bytes from input block into an array of 16 unsigned integers for (i = 0; i < 16; i++) { X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) <...
public VGASurface(VGADriver driver) throws ResourceNotFreeException {
public VGASurface(VGADriver driver) throws ResourceNotFreeException, DriverException {
public VGASurface(VGADriver driver) throws ResourceNotFreeException { super(640, 480); this.vga = new StandardVGA(driver.getDevice(), VGADriver.COLOR_MODEL); this.vgaIO = new StandardVGAIO(driver.getDevice(), vga.getVgaMem()); this.driver = driver; this.model = VGADriver.COLOR_MODEL; this.bitmapGraphics = new VG...
return VMRuntime.nativeGetLibname("", libname);
return VMRuntime.mapLibraryName(libname);
public static String mapLibraryName(String libname) { // XXX Fix this!!!! return VMRuntime.nativeGetLibname("", libname); }
SecurityManager sm = Runtime.securityManager;
SecurityManager sm = SecurityManager.current;
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not ha...
if (properties == null) { properties = (Properties) Runtime.defaultProperties.clone(); } System.properties = properties;
SystemProperties.setProperties(properties);
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not ha...
if (Runtime.securityManager != null) Runtime.securityManager.checkPermission
if (SecurityManager.current != null) SecurityManager.current.checkPermission
public static synchronized void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
Runtime.securityManager = sm;
SecurityManager.current = sm;
public static synchronized void setSecurityManager(SecurityManager sm) { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. This method is synchronized so that no other // thread changes it to null before this thread makes the change. if (Runtime.securityMan...
throw new IllegalArgumentException("Failed to parse integer string");
IllegalArgumentException iae = new IllegalArgumentException(pat); iae.initCause(nfx); throw iae;
private static int scanFormat(String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number...
int result = AppletWarning.show(); if (result == JOptionPane.NO_OPTION) return;
public void setHandle(long handle) { super.setHandle(handle); addNotify(); ArrayList l = parser.parseAppletTags(); int s = l.size(); for (int i = 0; i < s; i++) { tag = (AppletTag) l.get(i); applet = Main.createApplet(tag); if (contexts.get(tag.getCodeBase()) == null) ...
void setCursor(Cursor c);
void setCursor(Cursor c) throws InvalidDnDOperationException;
void setCursor(Cursor c);
void startDrag(DragSourceContext context, Cursor c, Image i, Point p);
void startDrag(DragSourceContext context, Cursor c, Image i, Point p) throws InvalidDnDOperationException;
void startDrag(DragSourceContext context, Cursor c, Image i, Point p);
private static java.io.OutputStream createFileStream(String pattern,
private OutputStream createFileStream(String pattern,
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
if (file.createNewFile()) return new FileOutputStream(path, append);
if (!file.exists () || append) { FileOutputStream fout = new FileOutputStream (file, append); if (logFiles.isEmpty ()) logFiles.addFirst (path); return new ostr (fout); }
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
ex.printStackTrace();
reportError (null, ex, ErrorManager.OPEN_FAILURE);
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
if (pattern.indexOf("%u") < 0)
if (!has (pattern, 'u'))
private static java.io.OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ ...
flush ();
public void publish(LogRecord record) { super.publish(record); /* FIXME: Decide when to switch over. How do we get to * the number of bytes published so far? Two possibilities: * 1. File.length, 2. have metering wrapper around * output stream counting the number of written bytes. */ /* FIX...
return BadBreakWeight;
return super.getBreakWeight(axis, pos, len);
public int getBreakWeight(int axis, float pos, float len) { if (axis == X_AXIS) return ForcedBreakWeight; else return BadBreakWeight; }
io = rm.claimIOResource(owner, iobase, iolength);
io = claimPorts(rm, owner, iobase, iolength);
public RTL8139Core(RTL8139Driver driver, ResourceOwner owner, PCIDevice device, Flags flags) throws DriverException, ResourceNotFreeException { if (!(flags instanceof RTL8139Flags)) throw new DriverException("Wrong flags to the RTL8139 driver"); this.driver = driver; this.flags = (RTL8139Flags) flags; final int ...
public int drawSelectedText(Graphics g, int x, int y, int p0, int p1)
protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1)
public int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text); }
String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text);
g.setColor(selectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0);
public int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.WHITE); g.drawString(text, x, y); return metrics.stringWidth(text); }
public int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
public int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text); }
String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text);
g.setColor(unselectedColor); Segment segment = new Segment(); getDocument().getText(p0, p1 - p0, segment); return Utilities.drawTabbedText(segment, x, y, g, this, 0);
public int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { String text = getDocument().getText(p0, p1); g.setColor(Color.BLACK); g.drawString(text, x, y); return metrics.stringWidth(text); }
System.out.println("Michael: PlainView.nextTabpStop: missing implementation"); return x;
float tabSizePixels = getTabSize() + metrics.charWidth('m'); return (float) (Math.floor(x / tabSizePixels) + 1) * tabSizePixels;
public float nextTabStop(float x, int tabStop) { System.out.println("Michael: PlainView.nextTabpStop: missing implementation"); return x; }
System.out.println("Michael: PlainView.paint");
JTextComponent textComponent = (JTextComponent) getContainer();
public void paint(Graphics g, Shape s) { System.out.println("Michael: PlainView.paint"); Rectangle rect = s.getBounds(); g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height); // FIXME: Text may be scrolled. drawLine(0, g, rect.x, rect.y); }
g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height);
public void paint(Graphics g, Shape s) { System.out.println("Michael: PlainView.paint"); Rectangle rect = s.getBounds(); g.setColor(Color.WHITE); g.fillRect(rect.x, rect.y, rect.width, rect.height); // FIXME: Text may be scrolled. drawLine(0, g, rect.x, rect.y); }
public Exception() { super(); }
public Exception() { }
public Exception() { super(); }
getPrinterJob();
PrinterJob getPrinterJob();
getPrinterJob();
log.debug("createFrame", new Exception("Stacktrace"));
protected FramePeer createFrame(Frame target) { log.debug("createFrame", new Exception("Stacktrace")); final int rc = incRefCount(); log.debug("createFrame refCount=" + rc); if (!initialized) { log.debug("createFrame:desktopFramePeer(" + target + ")"); // Only deskt...
log.debug("createFrame refCount=" + rc);
protected FramePeer createFrame(Frame target) { log.debug("createFrame", new Exception("Stacktrace")); final int rc = incRefCount(); log.debug("createFrame refCount=" + rc); if (!initialized) { log.debug("createFrame:desktopFramePeer(" + target + ")"); // Only deskt...
log.debug("onInitialize", new Exception("Stacktrace"));
log.debug("onInitialize");
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
log.debug("onInitialize.1");
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
log.debug("onInitialize.2");
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
log.debug("onInitialize.3");
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
log.debug("desktopFrame.show");
protected void onInitialize() { log.debug("onInitialize", new Exception("Stacktrace")); desktopFrame = new JFrame(""); log.debug("onInitialize.1"); desktopFrame.setSize(getScreenSize().width, getScreenSize().height); log.debug("onInitialize.2"); desktop = new JDesktopPane()...
if (count < notificationSet.length)
if (count >= notificationSet.length)
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List...
notificationSet[count++] = rec;
int len = Math.max(notificationSet.length, 1); ListenerRecord[] tmp = new ListenerRecord[len * 2]; System.arraycopy(notificationSet, 0, tmp, 0, notificationSet.length); notificationSet = tmp;
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List...
else throw new RuntimeException("Event notification set size exceeded");
notificationSet[count++] = rec;
private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List...
return "lastGCTime " + lastGCTime + "\n" + "lastMarkDuration " + lastMarkDuration + "\n" + "lastSweepDuration " + lastSweepDuration + "\n" +
return "lastGCTime " + lastGCTime + "\n" + "lastMarkIterations " + lastMarkIterations + "\n" + "lastMarkDuration " + lastMarkDuration + "\n" + "lastSweepDuration " + lastSweepDuration + "\n" +
public String toString() { return "lastGCTime " + lastGCTime + "\n" + "lastMarkDuration " + lastMarkDuration + "\n" + "lastSweepDuration " + lastSweepDuration + "\n" + "lastCleanupDuration " + lastCleanupDuration + "\n" + "lastMarkedObjects " + ...
}catch(InvocationTargetException e){ throw (Exception)e.getTargetException();
public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception { // Check if client and server are in the same VM, then local call can be used to // replace remote call, but it's somewhat violating remote semantic. Object svrobj = manager.serverobj; // Make sure that the s...
catch (InvocationTargetException e) { throw (Exception) e.getTargetException(); }
public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception { // Check if client and server are in the same VM, then local call can be used to // replace remote call, but it's somewhat violating remote semantic. Object svrobj = manager.serverobj; // Make sure that the s...
} else { returnval = ((RMIObjectInputStream)in).readValue(cls);
} else { returnval = ((RMIObjectInputStream) in).readValue(cls); }
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
} catch (IOException e3) {
catch (IOException e3) {
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
/* if DGCAck is necessary?? dout.writeByte(MESSAGE_DGCACK); ack.write(dout); out.flush();
/* * if DGCAck is necessary?? * to indicate receiving return value dout.writeByte(MESSAGE_DGCACK); * ack.write(dout); out.flush();
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " + manager.serverName, e1); } ObjectOutputStream out; DataOut...
}
if (manager.serverobj == null) LeaseRenewingTask.scheduleLeases(this); }
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { manager = UnicastConnectionManager.read(in); objid = ObjID.read(in); byte ack = in.readByte(); // This byte is somewhat confusing when interoperating with JDK if (ack != RETURN_ACK && ack != 0/*jdk ack value*/) { throw new IOExceptio...
textComponent.addFocusListener(focuslistener);
protected void installListeners() { // Do nothing here. }
if (caret != null)
if (caret != null && textComponent.hasFocus())
protected void paintSafely(Graphics g) { Caret caret = textComponent.getCaret(); Highlighter highlighter = textComponent.getHighlighter(); if (textComponent.isOpaque()) paintBackground(g); if (highlighter != null && textComponent.getSelectionStart() != textComponent.getSelectionEnd()) h...
textComponent.removeFocusListener(focuslistener);
protected void uninstallListeners() { // Do nothing here. }
Iterator iter = timezones.entrySet().iterator(); while (iter.hasNext()) {
Iterator iter = timezones().entrySet().iterator(); while (iter.hasNext()) {
public static String[] getAvailableIDs(int rawOffset) { int count = 0; Iterator iter = timezones.entrySet().iterator(); while (iter.hasNext()) { // Don't iterate the values, since we want to count // doubled values (aliases) Map.Entry entry = (Map.Entry)iter.next(); if (((TimeZone)entry.getValue()).getRawO...
iter = timezones.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); if (((TimeZone)entry.getValue()).getRawOffset() == rawOffset) ids[count++] = (String)entry.getKey();
iter = timezones().entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); if (((TimeZone) entry.getValue()).getRawOffset() == rawOffset) ids[count++] = (String) entry.getKey();
public static String[] getAvailableIDs(int rawOffset) { int count = 0; Iterator iter = timezones.entrySet().iterator(); while (iter.hasNext()) { // Don't iterate the values, since we want to count // doubled values (aliases) Map.Entry entry = (Map.Entry)iter.next(); if (((TimeZone)entry.getValue()).getRawO...
public static void setDefault(TimeZone zone) { defaultZone = zone;
public static void setDefault(TimeZone zone) { defaultZone0 = zone;
public static void setDefault(TimeZone zone) { defaultZone = zone; }
public void configure (String configArgs, Thread mainThread)
public void configure (String configArgs)
public void configure (String configArgs, Thread mainThread) { _mainThread = mainThread; _processConfigury (configArgs); }
_mainThread = mainThread;
public void configure (String configArgs, Thread mainThread) { _mainThread = mainThread; _processConfigury (configArgs); }
_mainThread.start (); _mainThread.join (); } catch (InterruptedException ie) {
public void run () { try { _doInitialization (); _mainThread.start (); _mainThread.join (); } catch (InterruptedException ie) { /* Shutting down. If we're in server mode, we should prepare for a new connection. Otherwise, we should simply exit. */ // FIXME } catch (Throwable t) ...
LeafElement(Element e, AttributeSet a, int s, int end) { super(e, a); }
public LeafElement(Element e, AttributeSet a, int s, int end) { super(e, a); }
LeafElement(Element e, AttributeSet a, int s, int end) { super(e, a); }
AbstractDocument(Content doc) { content = doc; }
protected AbstractDocument(Content doc) { this(doc, null); }
AbstractDocument(Content doc) { content = doc; }
{ doc_list.addElement(listener); }
{ listenerList.add(DocumentListener.class, listener); }
public void addDocumentListener(DocumentListener listener) { doc_list.addElement(listener); }
{ undo_list.addElement(listener); }
{ listenerList.add(UndoableEditListener.class, listener); }
public void addUndoableEditListener(UndoableEditListener listener) { undo_list.addElement(listener); }
protected void fireChangedUpdate(DocumentEvent e)
protected void fireChangedUpdate(DocumentEvent event)
protected void fireChangedUpdate(DocumentEvent e) { }
DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event);
protected void fireChangedUpdate(DocumentEvent e) { }
protected void fireInsertUpdate(DocumentEvent e)
protected void fireInsertUpdate(DocumentEvent event)
protected void fireInsertUpdate(DocumentEvent e) { }
DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event);
protected void fireInsertUpdate(DocumentEvent e) { }
protected void fireRemoveUpdate(DocumentEvent e)
protected void fireRemoveUpdate(DocumentEvent event)
protected void fireRemoveUpdate(DocumentEvent e) { }
DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event);
protected void fireRemoveUpdate(DocumentEvent e) { }
protected void fireUndoableEditUpdate(UndoableEditEvent e)
protected void fireUndoableEditUpdate(UndoableEditEvent event)
protected void fireUndoableEditUpdate(UndoableEditEvent e) { }
UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event);
protected void fireUndoableEditUpdate(UndoableEditEvent e) { }
int getAsynchronousLoadPriority()
public int getAsynchronousLoadPriority()
int getAsynchronousLoadPriority() { return 0; }
Element getBidiRootElement()
public Element getBidiRootElement()
Element getBidiRootElement() { return null; }
return null;
return listenerList.getListeners(listenerType);
public EventListener[] getListeners(Class listenerType) { return null; }
try {
public void insertString(int offs, String str, AttributeSet a) { try { content.insertString(offs, str); } catch (Exception e) { System.err.println("FAILED TO INSERT-STRING: " + e + ", at:"+offs); } }
} catch (Exception e) { System.err.println("FAILED TO INSERT-STRING: " + e + ", at:"+offs); }
public void insertString(int offs, String str, AttributeSet a) { try { content.insertString(offs, str); } catch (Exception e) { System.err.println("FAILED TO INSERT-STRING: " + e + ", at:"+offs); } }
listenerList.remove(DocumentListener.class, listener);
public void removeDocumentListener(DocumentListener listener) { }
}
listenerList.remove(UndoableEditListener.class, listener); }
public void removeUndoableEditListener(UndoableEditListener listener) { }
void setAsynchronousLoadPriority(int p)
public void setAsynchronousLoadPriority(int p)
void setAsynchronousLoadPriority(int p) { }