rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation");
public boolean getReuseAddress() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption(SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException("Internal Error"); return ((Boolean)reu...
Object reuseaddr = impl.getOption(SocketOptions.SO_REUSEADDR);
Object reuseaddr = getImpl().getOption(SocketOptions.SO_REUSEADDR);
public boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object reuseaddr = impl.getOption(SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException("Internal Error"); return ((Boolean)reu...
public int getSendBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected");
public int getSendBufferSize() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public int getSendBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_SNDBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
Object buf = impl.getOption(SocketOptions.SO_SNDBUF);
Object buf = getImpl().getOption(SocketOptions.SO_SNDBUF);
public int getSendBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_SNDBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
public int getSoLinger() throws SocketException { if (impl == null) throw new SocketException("Not connected");
public int getSoLinger() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public int getSoLinger() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object linger = impl.getOption(SocketOptions.SO_LINGER); if (linger instanceof Integer) return (((Integer)linger).intValue()); else return -1; }
Object linger = impl.getOption(SocketOptions.SO_LINGER);
Object linger = getImpl().getOption(SocketOptions.SO_LINGER);
public int getSoLinger() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object linger = impl.getOption(SocketOptions.SO_LINGER); if (linger instanceof Integer) return (((Integer)linger).intValue()); else return -1; }
public synchronized int getSoTimeout() throws SocketException { if (impl == null) throw new SocketException("Not connected");
public synchronized int getSoTimeout() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public synchronized int getSoTimeout() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (timeout instanceof Integer) return (((Integer)timeout).intValue()); else return 0; }
Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT);
Object timeout = getImpl().getOption(SocketOptions.SO_TIMEOUT);
public synchronized int getSoTimeout() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (timeout instanceof Integer) return (((Integer)timeout).intValue()); else return 0; }
public boolean getTcpNoDelay() throws SocketException { if (impl == null) throw new SocketException("Not connected");
public boolean getTcpNoDelay() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public boolean getTcpNoDelay() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object on = impl.getOption(SocketOptions.TCP_NODELAY); if (on instanceof Boolean) return (((Boolean)on).booleanValue()); else throw new SocketException("Internal Error"); }
Object on = impl.getOption(SocketOptions.TCP_NODELAY);
Object on = getImpl().getOption(SocketOptions.TCP_NODELAY);
public boolean getTcpNoDelay() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object on = impl.getOption(SocketOptions.TCP_NODELAY); if (on instanceof Boolean) return (((Boolean)on).booleanValue()); else throw new SocketException("Internal Error"); }
public int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation");
public int getTrafficClass() throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object obj = impl.getOption(SocketOptions.IP_TOS); if (obj instanceof Integer) return ((Integer)obj).intValue(); else throw new SocketException("Unexpected type"); }
Object obj = impl.getOption(SocketOptions.IP_TOS);
Object obj = getImpl().getOption(SocketOptions.IP_TOS);
public int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object obj = impl.getOption(SocketOptions.IP_TOS); if (obj instanceof Integer) return ((Integer)obj).intValue(); else throw new SocketException("Unexpected type"); }
public boolean isBound() { return getLocalAddress() != null;
public boolean isBound() { return bound;
public boolean isBound() { return getLocalAddress() != null; }
public boolean isConnected() { return impl.getInetAddress() != null;
public boolean isConnected() { try { if (getImpl() == null) return false; return getImpl().getInetAddress() != null; } catch (SocketException e) { return false; }
public boolean isConnected() { return impl.getInetAddress() != null; }
public void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data);
public void sendUrgentData(int data) throws IOException { if (isClosed()) throw new SocketException("socket is closed"); getImpl().sendUrgentData(data);
public void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data); }
public void setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected");
public void setOOBInline(boolean on) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); }
impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on));
getImpl().setOption(SocketOptions.SO_OOBINLINE, Boolean.valueOf(on));
public void setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); }
public void setReceiveBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected");
public void setReceiveBufferSize(int size) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setReceiveBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_RCVBUF value must be > 0"); impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size)); }
impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size));
getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));
public void setReceiveBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_RCVBUF value must be > 0"); impl.setOption(SocketOptions.SO_RCVBUF, new Integer(size)); }
public void setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation");
public void setReuseAddress(boolean reuseAddress) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on)); }
impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on));
getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(reuseAddress));
public void setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on)); }
public void setSendBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected");
public void setSendBufferSize(int size) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setSendBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_SNDBUF value must be > 0"); impl.setOption(SocketOptions.SO_SNDBUF, new Integer(size)); }
impl.setOption(SocketOptions.SO_SNDBUF, new Integer(size));
getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size));
public void setSendBufferSize(int size) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (size <= 0) throw new IllegalArgumentException("SO_SNDBUF value must be > 0"); impl.setOption(SocketOptions.SO_SNDBUF, new Integer(size)); }
public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created");
public void setSoLinger(boolean on, int linger) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_...
if (on == true) {
if (on) {
public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_...
impl.setOption(SocketOptions.SO_LINGER, new Integer(linger)); } else { impl.setOption(SocketOptions.SO_LINGER, new Boolean(false));
getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger));
public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_...
else getImpl().setOption(SocketOptions.SO_LINGER, Boolean.valueOf(false));
public void setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on == true) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_...
public void setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation");
public void setTrafficClass(int tc) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); impl.setOption(SocketOptions.IP_TOS, new Integer(tc)); }
impl.setOption(SocketOptions.IP_TOS, new Integer(tc));
getImpl().setOption(SocketOptions.IP_TOS, new Integer(tc));
public void setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); impl.setOption(SocketOptions.IP_TOS, new Integer(tc)); }
public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput();
public void shutdownInput() throws IOException { if (isClosed()) throw new SocketException("socket is closed");
public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); inputShutdown = true; }
getImpl().shutdownInput();
public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); inputShutdown = true; }
public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput();
public void shutdownOutput() throws IOException { if (isClosed()) throw new SocketException("socket is closed");
public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); outputShutdown = true; }
getImpl().shutdownOutput();
public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); outputShutdown = true; }
public String toString() { return ("Socket " + impl);
public String toString() { try { if (isConnected()) return ("Socket[addr=" + getImpl().getInetAddress() + ",port=" + getImpl().getPort() + ",localport=" + getImpl().getLocalPort() + "]"); } catch (SocketException e) {
public String toString() { return ("Socket " + impl); }
return "Socket[unconnected]"; }
public String toString() { return ("Socket " + impl); }
JPopupMenu.this.revalidate(); JPopupMenu.this.repaint();
public void propertyChange(PropertyChangeEvent evt) { JPopupMenu.this.revalidate(); JPopupMenu.this.repaint(); }
super.setSize(null);
if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { public void run() { show(); } }); } setSize(getPreferredSize());
public void pack() { super.setSize(null); }
GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 100.0; constraints.weighty = 100.0; Component[] items = getComponents(); for (int i = index; i < items.length; i++) { constraints.gridy = i; super.add(items[i], constraints, i); } this.setSize(t...
revalidate();
public void remove(int index) { super.remove(index); GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.weightx = 100.0; constraints.weighty = 100.0; Component[] items = getComponents(); for (int i = index; i < items.length; i++) ...
if (popupLocation == null) popupLocation = new Point(); popupLocation.x = x; popupLocation.y = y;
popupLocationX = x; popupLocationY = y;
public void setLocation(int x, int y) { if (popupLocation == null) popupLocation = new Point(); popupLocation.x = x; popupLocation.y = y; }
public void setVisible(boolean visible)
public void setVisible(final boolean visible)
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
Container rootContainer = (Container) SwingUtilities.getRoot(invoker); Dimension screenSize = getToolkit().getScreenSize();
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
boolean fit = true; Dimension size = getSize(); if (size.width == 0 && size.height == 0) { size = getPreferredSize(); setSize(size); } if ((size.width > (rootContainer.getWidth() - popupLocation.x)) || (size.height > (rootContainer.getHeight() - popupLocation.y))) fit = false; if (lightWeightPopupEnabled && fit) popup ...
PopupFactory pf = PopupFactory.getSharedInstance(); popup = pf.getPopup(invoker, this, popupLocationX, popupLocationY); pack(); popup.show();
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
public abstract int getCaretPosition();
int getCaretPosition();
public abstract int getCaretPosition();
public abstract int getSelectionEnd();
int getSelectionEnd();
public abstract int getSelectionEnd();
public abstract int getSelectionStart();
int getSelectionStart();
public abstract int getSelectionStart();
public abstract void select(int start_pos, int end_pos);
void select(int start_pos, int end_pos);
public abstract void select(int start_pos, int end_pos);
public abstract void setCaretPosition(int pos);
void setCaretPosition(int pos);
public abstract void setCaretPosition(int pos);
public abstract void setEditable(boolean editable);
void setEditable(boolean editable);
public abstract void setEditable(boolean editable);
int width = Utilities.getTabbedTextWidth(txt, g.getFontMetrics(), bounds.x, tabEx, txt.offset);
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
}
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
Utilities.drawTabbedText(txt, bounds.x, bounds.y - height / 2, g, tabEx, txt.offset);
Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent - height / 2, g, tabEx, txt.offset);
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
Utilities.drawTabbedText(txt, bounds.x, bounds.y + height / 2, g, tabEx, txt.offset);
Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent + height / 2, g, tabEx, txt.offset);
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
Utilities.drawTabbedText(txt, bounds.x, bounds.y, g, tabEx,
Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent, g, tabEx,
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
g.setColor(oldColor);
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
startOffset = element.getStartOffset(); endOffset = element.getEndOffset();
startOffset = -1; endOffset = -1;
public GlyphView(Element element) { super(element); startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); }
if (p1 != getEndOffset())
public View createFragment(int p0, int p1) { GlyphView fragment = (GlyphView) clone(); fragment.startOffset = p0; fragment.endOffset = p1; return fragment; }
return StyleConstants.getBackground(atts);
return (Color) atts.getAttribute(StyleConstants.Background);
public Color getBackground() { Element el = getElement(); AttributeSet atts = el.getAttributes(); return StyleConstants.getBackground(atts); }
int spanX = (int) getPreferredSpan(X_AXIS); int spanY = (int) getPreferredSpan(Y_AXIS); Rectangle dummyAlloc = new Rectangle(0, 0, spanX, spanY); Position.Bias[] biasRet = new Position.Bias[1]; int offset1 = viewToModel(pos, spanY / 2, dummyAlloc, biasRet); int offset2 = viewToModel(pos, spanY / 2, dummyAlloc, biasRet)...
weight = GoodBreakWeight;
public int getBreakWeight(int axis, float pos, float len) { int weight; if (axis == Y_AXIS) weight = super.getBreakWeight(axis, pos, len); else { // Determine the model locations at pos and pos + len. int spanX = (int) getPreferredSpan(X_AXIS); int spanY = (int) getPreferredSp...
return endOffset;
int end = endOffset; if (end < 0) end = super.getEndOffset(); return end;
public int getEndOffset() { return endOffset; }
return startOffset;
int start = startOffset; if (start < 0) start = super.getStartOffset(); return start;
public int getStartOffset() { return startOffset; }
getParent().preferenceChanged(this, true, false);
preferenceChanged(this, true, false);
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory vf) { getParent().preferenceChanged(this, true, false); }
private boolean isNameCharacter(int c)
public static boolean isNameCharacter(int c, boolean xml11)
private boolean isNameCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB...
if (input.xml11)
if (xml11)
private boolean isNameCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB...
private boolean isNameStartCharacter(int c)
public static boolean isNameStartCharacter(int c, boolean xml11)
private boolean isNameStartCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c ...
if (input.xml11)
if (xml11)
private boolean isNameStartCharacter(int c) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || (c >= 0xF8 && c ...
if (!isNameStartCharacter(cp[0]))
if (!isNameStartCharacter(cp[0], input.xml11))
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
if (!isNameCharacter(cp[0]))
if (!isNameCharacter(cp[0], input.xml11))
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
if (!isNameCharacter(cp[i]))
if (!isNameCharacter(cp[i], input.xml11))
private boolean isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0])) return false; } else { if (!isNameCh...
private boolean isXML11Char(int c)
public static boolean isXML11Char(int c)
private boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); }
private boolean isXML11RestrictedChar(int c)
public static boolean isXML11RestrictedChar(int c)
private boolean isXML11RestrictedChar(int c) { return ((c >= 0x0001 && c <= 0x0008) || (c >= 0x000B && c <= 0x000C) || (c >= 0x000E && c <= 0x001F) || (c >= 0x007F && c <= 0x0084) || (c >= 0x0086 && c <= 0x009F)); }
if (!isNameStartCharacter(cp[0]))
if (!isNameStartCharacter(cp[0], input.xml11))
private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ...
if (!isNameCharacter(cp[i]))
if (!isNameCharacter(cp[i], input.xml11))
private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ...
if (!isValidCodePoint(codePoint)) throw new IllegalArgumentException("Illegal Unicode code point : " + codePoint);
public static char[] toChars(int codePoint) { char[] result = new char[charCount(codePoint)]; int ignore = toChars(codePoint, result, 0); return result; }
public X500DistinguishedName(String name)
public X500DistinguishedName()
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); }
components = new LinkedList(); currentRdn = new LinkedHashMap(); components.add(currentRdn);
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) && (orgUnit != null && orgUnit.equals(((X500DistinguishedName) o).orgUnit)) ...
if (!(o instanceof X500DistinguishedName)) return false; if (size() != ((X500DistinguishedName) o).size()) return false; for (int i = 0; i < size(); i++) { Map m = (Map) components.get(i); for (Iterator it2 = m.entrySet().iterator(); it2.hasNext(); ) { Map.Entry e = (Map.Entry) it2.next(); OID oid = (OID) e.getKey(); S...
public boolean equals(Object o) { return (commonName != null && commonName.equals(((X500DistinguishedName) o).commonName)) && (country != null && country.equals(((X500DistinguishedName) o).country)) && (locality != null && locality.equals(((X500DistinguishedName) o).locality)) &&...
cfg.addRoute(new IPv4Address(hdr.getServerIPAddress()), null, device, false);
cfg.addRoute(network_address, null, device, false);
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
cfg.addRoute(new IPv4Address(hdr.getServerIPAddress()), new IPv4Address(hdr.getGatewayIPAddress()), device, false);
cfg.addRoute(network_address, new IPv4Address(hdr.getGatewayIPAddress()), device, false);
protected void configureNetwork(Device device, BOOTPHeader hdr) throws NetworkException { log.info("Got Client IP address : " + hdr.getClientIPAddress()); log.info("Got Your IP address : " + hdr.getYourIPAddress()); log.info("Got Server IP address : " + hdr.getServerIPAddress()); log.info("Got ...
if( isLightweight() ) setCursor( getCursor() );
protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo...
ret.addNodeName("embed");
public HTMLCollection getApplets() { DomHTMLCollection ret = new DomHTMLCollection(this, this); ret.addNodeName("object"); ret.addNodeName("applet"); ret.evaluate(); return ret; }
if (approveButtonText == null) return getUI().getApproveButtonText(this); else
public String getApproveButtonText() { if (approveButtonText == null) return getUI().getApproveButtonText(this); else return approveButtonText; }
return getFileView().getDescription(f);
String result = null; if (fv != null) result = fv.getDescription(f); if (result == null) result = getUI().getFileView(this).getDescription(f); return result;
public String getDescription(File f) { return getFileView().getDescription(f); }
if (dialogTitle == null) return getUI().getDialogTitle(this); else
public String getDialogTitle() { if (dialogTitle == null) return getUI().getDialogTitle(this); else return dialogTitle; }
if (fv == null) return getUI().getFileView(this); else
public FileView getFileView() { if (fv == null) return getUI().getFileView(this); else return fv; }
return getFileView().getIcon(f);
Icon result = null; if (fv != null) result = fv.getIcon(f); if (result == null) result = getUI().getFileView(this).getIcon(f); return result;
public Icon getIcon(File f) { return getFileView().getIcon(f); }
return getFileView().getName(f);
String name = null; if (fv != null) name = fv.getName(f); if (name == null) name = getUI().getFileView(this).getName(f); return name;
public String getName(File f) { return getFileView().getName(f); }
return getFileView().getTypeDescription(f);
String result = null; if (fv != null) result = getFileView().getTypeDescription(f); if (result == null) result = getUI().getFileView(this).getTypeDescription(f); return result;
public String getTypeDescription(File f) { return getFileView().getTypeDescription(f); }
if (!(ctx instanceof DomDoctype)) { return; }
public void elementDecl(String name, String model) throws SAXException { if (interrupted) { return; } DomDoctype doctype = (DomDoctype) ctx; doctype.elementDecl(name, model); }
for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++)
for (int yp = 0; yp < h; yp++)
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } }
pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++;
for (int xp = 0; xp < w; xp++) { pixels[offset + xp] = filterRGB(xp + x, yp + y, pixels[offset + xp]); } offset += scansize;
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int offset, int scansize) { for (int xp = x; xp < (x + w); xp++) for (int yp = y; yp < (y + h); yp++) { pixels[offset] = filterRGB(xp, yp, pixels[offset]); offset++; } }
out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Alt-SysRq - Quit debugger");
final TreeMap map = new TreeMap(); map.put(".", "Print state trace"); map.put("p", "Print current state"); map.put("h", "Print usage information"); state.fillHelp(map); for (Iterator i = map.entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); out.println(entry.getKey() + " - " + entry.getValu...
private void help(PrintStream out) { out.println("Usage:"); out.println("t - List all threads"); out.println("r - List all running threads"); out.println("w - List all waiting threads"); out.println("n - Next thread in list"); out.println("Al...
threads = null; threadIterator = null;
state = new RootState();
private void reset() { threads = null; threadIterator = null; }
switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w': showThreadList(out, ST_WAITING, "[Waiting threads]"); break; case 'n': showNextThread(out); break; case 'h': case '?': case 'H': help(out);
DebugState st = this.state; while ((st != null) && (!event.isConsumed())) { final DebugState newState = st.process(event); if (event.isConsumed()) { newState.print(out); this.state = newState; out.println(); } else { st = st.getParent(); } } if (!event.isConsumed()) { switch (event.getKeyChar()) { case 'p': state.pri...
public Object run() { final PrintStream out = VmSystem.getOut(); switch (event.getKeyChar()) { case 't': showThreadList(out, ST_ALL, "[All threads]"); break; case 'r': showThreadList(out, ST_RUNNING, "[Running threads]"); break; case 'w'...
} else { System.out.println();
public void systemTrigger(SystemEvent event) { event.consume(); if (!enabled) { reset(); setPreferredListener(); VmSystem.getOut().println("[Debugger ('h' for help)]"); } enabled = !enabled; }
public int[] getRowsForPaths(TreePath[] path);
int[] getRowsForPaths(TreePath[] path);
public int[] getRowsForPaths(TreePath[] path);
return current.visible && current.isDisplayable() && current.enabled && current.focusable;
return (current.visible && current.isDisplayable () && current.enabled && current.focusable);
protected boolean accept(Component current) { return current.visible && current.isDisplayable() && current.enabled && current.focusable; }
streamRequest sr = (streamRequest) output;
StreamBasedRequest sr = (StreamBasedRequest) output;
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
if (handler instanceof dynImpHandler)
if (handler instanceof DynamicImpHandler)
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
cdrOutput buf = sr.createEncapsulation();
AbstractCdrOutput buf = sr.createEncapsulation();
public InputStream invoke(org.omg.CORBA.Object target, OutputStream output) throws ApplicationException { try { streamRequest sr = (streamRequest) output; LocalRequest lr = (LocalRequest) sr.request; InvokeHandler handler = lr.object.getHandler(lr.operation(), lr.cookie, ...
}
public LocalRequest(gnuServantObject local_object, gnuPOA a_poa, byte[] an_id) { Id = an_id; poa = a_poa; // Instantiate the cookie holder only if required. if (poa.servant_locator != null) cookie = new CookieHolder(); object = local_object; prepareStream(); }