bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
19,559
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
19,560
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
private boolean verifySF(String sigFileName) throws CRLException, CertificateException, ZipException, IOException { log.entering(this.getClass().getName(), "verifySF"); //$NON-NLS-1$ log.finest("About to verify signature of " + sigFileName + "..."); //$NON-NLS-1$ //$NON-NLS-2$ // 1. find the correspond...
19,561
private boolean verifySFEntries(String alias) throws IOException { log.entering(this.getClass().getName(), "verifySFEntries"); //$NON-NLS-1$ // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); In...
private boolean verifySFEntries(String alias) throws IOException { log.entering(this.getClass().getName(), "verifySFEntries"); //$NON-NLS-1$ // 1. read the signature file JarEntry jarEntry = jarFile.getJarEntry(JarUtils.META_INF + alias + JarUtils.SF_SUFFIX); In...
19,563
private boolean verifySFEntry(String name, String hash) throws IOException { String expectedValue = getEntryHash(JarFile.MANIFEST_NAME); boolean result = expectedValue.equalsIgnoreCase(hash); log.finest("Is " + name + " OK? " + result); //$NON-NLS-1$ //$NON-NLS-2$ return result; }
private boolean verifySFEntry(String name, String hash) throws IOException { String expectedValue = getEntryHash(JarFile.MANIFEST_NAME); boolean result = expectedValue.equalsIgnoreCase(hash); if (Configuration.DEBUG) log.fine("Is " + name + " OK? " + result); //$NON-NLS-1$ //$NON-NLS-2$ return result; }
19,564
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[3]) { throw new IllegalArgum...
public PrivateKey decodePrivateKey(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[3]) throw new IllegalArgumen...
19,566
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[3]) { throw new IllegalArgum...
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PRIVATE_KEY[3]) { throw new IllegalArgum...
19,567
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[3]) { throw new IllegalArgumentExc...
public PublicKey decodePublicKey(byte[] k) // magic if (k[0] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[3]) throw new IllegalArgumentExcep...
19,568
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[3]) { throw new IllegalArgumentExc...
public PublicKey decodePublicKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0] || k[1] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[1] || k[2] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[2] || k[3] != Registry.MAGIC_RAW_DSS_PUBLIC_KEY[3]) { throw new IllegalArgumentExc...
19,569
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof DSSPrivateKey)) { throw new IllegalArgumentException("key"); } DSSPrivateKey dssKey = (DSSPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PRIVATE...
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof DSSPrivateKey)) { throw new IllegalArgumentException("key"); } DSSPrivateKey dssKey = (DSSPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PRIVATE...
19,570
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof DSSPrivateKey)) { throw new IllegalArgumentException("key"); } DSSPrivateKey dssKey = (DSSPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PRIVATE...
public byte[] encodePrivateKey(PrivateKey key) { if (!(key instanceof DSSPrivateKey)) { throw new IllegalArgumentException("key"); DSSPrivateKey dssKey = (DSSPrivateKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PRIVATE_...
19,571
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof DSSPublicKey)) { throw new IllegalArgumentException("key"); } DSSPublicKey dssKey = (DSSPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0...
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof DSSPublicKey)) { throw new IllegalArgumentException("key"); } DSSPublicKey dssKey = (DSSPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0...
19,572
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof DSSPublicKey)) { throw new IllegalArgumentException("key"); } DSSPublicKey dssKey = (DSSPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0...
public byte[] encodePublicKey(PublicKey key) { if (!(key instanceof DSSPublicKey)) { throw new IllegalArgumentException("key"); DSSPublicKey dssKey = (DSSPublicKey) key; ByteArrayOutputStream baos = new ByteArrayOutputStream(); // magic baos.write(Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]...
19,573
public void bind(SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(bindpoint instanceof InetSocketAddress)) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress)bindpoint; impl.bind(tmp.getAddress(), tmp.getPort()); }
public void bind(SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(bindpoint instanceof InetSocketAddress)) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress)bindpoint; impl.bind(tmp.getAddress(), tmp.getPort()); }
19,580
public void bind(SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(bindpoint instanceof InetSocketAddress)) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress)bindpoint; impl.bind(tmp.getAddress(), tmp.getPort()); }
public void bind(SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (bindpoint == null) bindpoint = new InetSocketAddress(InetAddress.ANY_IF, 0); if (! (bindpoint instanceof InetSocketAddress)) throw new IllegalArgumentException(); InetSocketAddress tmp ...
19,581
public void bind(SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(bindpoint instanceof InetSocketAddress)) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress)bindpoint; impl.bind(tmp.getAddress(), tmp.getPort()); }
public void bind(SocketAddress bindpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(bindpoint instanceof InetSocketAddress)) throw new IllegalArgumentException(); InetSocketAddress tmp = (InetSocketAddress)bindpoint; impl.bind(tmp.getAddress(), tmp.getPort()); }
19,582
public void connect(SocketAddress endpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException("Address type not supported"); if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException...
public void connect(SocketAddress endpoint) throws IOException { if (closed) throw new SocketException("Socket is closed"); if (!(endpoint instanceof InetSocketAddress)) throw new IllegalArgumentException("Address type not supported"); if (ch != null && !ch.isBlocking()) throw new IllegalBlockingModeException...
19,583
public SocketChannel getChannel() { return ch; }
public SocketChannel getChannel() { return ch; }
19,584
public boolean getKeepAlive() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_KEEPALIVE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); ...
public boolean getKeepAlive() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_KEEPALIVE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); ...
19,585
public boolean getKeepAlive() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_KEEPALIVE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); ...
public boolean getKeepAlive() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = getImpl().getOption(SocketOptions.SO_KEEPALIVE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected typ...
19,586
public InetAddress getLocalAddress() { if (impl == null) return null; InetAddress addr = null; try { addr = (InetAddress)impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // (hopefully) shouldn't happen // throw new java.lang.InternalError // ("Error in PlainSocketImpl.getOpti...
public InetAddress getLocalAddress() { if (impl == null) return null; InetAddress addr = null; try { addr = (InetAddress)impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // (hopefully) shouldn't happen // throw new java.lang.InternalError // ("Error in PlainSocketImpl.getOpti...
19,587
public InetAddress getLocalAddress() { if (impl == null) return null; InetAddress addr = null; try { addr = (InetAddress)impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // (hopefully) shouldn't happen // throw new java.lang.InternalError // ("Error in PlainSocketImpl.getOpti...
public InetAddress getLocalAddress() { if (impl == null) return null; InetAddress addr = null; try { addr = (InetAddress)impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // (hopefully) shouldn't happen // throw new java.lang.InternalError // ("Error in PlainSocketImpl.getOpti...
19,588
public int getLocalPort() { if (impl != null) return impl.getLocalPort(); return -1; }
public int getLocalPort() { if (impl != null) return impl.getLocalPort(); return -1; }
19,589
public SocketAddress getLocalSocketAddress() { InetAddress addr = getLocalAddress(); if (addr == null) return null; return new InetSocketAddress(addr, impl.getLocalPort()); }
public SocketAddress getLocalSocketAddress() { if (! isBound()) return null; InetAddress addr = getLocalAddress(); if (addr == null) return null; return new InetSocketAddress(addr, impl.getLocalPort()); }
19,590
public SocketAddress getLocalSocketAddress() { InetAddress addr = getLocalAddress(); if (addr == null) return null; return new InetSocketAddress(addr, impl.getLocalPort()); }
public SocketAddress getLocalSocketAddress() { InetAddress addr = getLocalAddress(); try { return new InetSocketAddress(addr, getImpl().getLocalPort()); } catch (SocketException e) { return null; return new InetSocketAddress(addr, impl.getLocalPort()); }
19,591
public SocketAddress getLocalSocketAddress() { InetAddress addr = getLocalAddress(); if (addr == null) return null; return new InetSocketAddress(addr, impl.getLocalPort()); }
public SocketAddress getLocalSocketAddress() { InetAddress addr = getLocalAddress(); if (addr == null) return null; } }
19,592
public boolean getOOBInline() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_OOBINLINE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); ...
public boolean getOOBInline() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_OOBINLINE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); ...
19,593
public boolean getOOBInline() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_OOBINLINE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected type"); ...
public boolean getOOBInline() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = getImpl().getOption(SocketOptions.SO_OOBINLINE); if (buf instanceof Boolean) return (((Boolean)buf).booleanValue()); else throw new SocketException("Internal Error: Unexpected typ...
19,594
public int getPort() { if (impl != null) return impl.getPort(); return -1; }
public int getPort() { if (impl != null) return impl.getPort(); return -1; }
19,595
public int getPort() { if (impl != null) return impl.getPort(); return -1; }
public int getPort() { if (impl != null) return impl.getPort(); try { return getImpl().getPort(); } catch (SocketException e) { } return 0; }
19,596
public int getReceiveBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_RCVBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
public int getReceiveBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_RCVBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
19,597
public int getReceiveBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = impl.getOption(SocketOptions.SO_RCVBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
public int getReceiveBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = getImpl().getOption(SocketOptions.SO_RCVBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type")...
19,598
public SocketAddress getRemoteSocketAddress() { if (!isConnected()) return null; return new InetSocketAddress(impl.getInetAddress(), impl.getPort()); }
public SocketAddress getRemoteSocketAddress() { if (!isConnected()) return null; try { return new InetSocketAddress(getImpl().getInetAddress(), getImpl().getPort()); } catch (SocketException e) { return null; } }
19,599
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 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...
19,600
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 boolean getReuseAddress() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object reuseaddr = getImpl().getOption(SocketOptions.SO_REUSEADDR); if (!(reuseaddr instanceof Boolean)) throw new SocketException("Internal Error"); return ((Boolea...
19,601
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 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"); }
19,602
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 getSendBufferSize() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object buf = getImpl().getOption(SocketOptions.SO_SNDBUF); if (buf instanceof Integer) return (((Integer)buf).intValue()); else throw new SocketException("Internal Error: Unexpected type"); }
19,603
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 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; }
19,604
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 int getSoLinger() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object linger = getImpl().getOption(SocketOptions.SO_LINGER); if (linger instanceof Integer) return (((Integer)linger).intValue()); else return -1; }
19,605
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 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; }
19,606
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 synchronized int getSoTimeout() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object timeout = getImpl().getOption(SocketOptions.SO_TIMEOUT); if (timeout instanceof Integer) return (((Integer)timeout).intValue()); else return 0; }
19,607
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 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"); }
19,608
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 boolean getTcpNoDelay() throws SocketException { if (impl == null) throw new SocketException("Not connected"); Object on = getImpl().getOption(SocketOptions.TCP_NODELAY); if (on instanceof Boolean) return (((Boolean)on).booleanValue()); else throw new SocketException("Internal Error"); }
19,609
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 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"); }
19,610
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 int getTrafficClass() throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); Object obj = getImpl().getOption(SocketOptions.IP_TOS); if (obj instanceof Integer) return ((Integer)obj).intValue(); else throw new SocketException("Unexpected type")...
19,611
public boolean isBound() { return getLocalAddress() != null; }
public boolean isBound() { return getLocalAddress() != null; }
19,612
public boolean isConnected() { return impl.getInetAddress() != null; }
public boolean isConnected() { return impl.getInetAddress() != null; }
19,613
public void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data); }
public void sendUrgentData(int data) throws IOException { impl.sendUrgentData(data); }
19,614
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 setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_OOBINLINE, new Boolean(on)); }
19,615
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 setOOBInline(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); getImpl().setOption(SocketOptions.SO_OOBINLINE, Boolean.valueOf(on)); }
19,616
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 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)); }
19,617
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 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"); getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size)); }
19,618
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 setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(on)); }
19,619
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 setReuseAddress(boolean on) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); getImpl().setOption(SocketOptions.SO_REUSEADDR, Boolean.valueOf(reuseAddress)); }
19,620
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 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)); }
19,621
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 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"); getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size)); }
19,622
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 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_...
19,623
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 setSoLinger(boolean on, int linger) throws SocketException { if (impl == null) throw new SocketException("No socket created"); if (on) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; impl.setOption(SocketOptions.SO_LINGER, ...
19,624
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 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_...
19,625
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 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)); }
19,627
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 setTrafficClass(int tc) throws SocketException { if (impl == null) throw new SocketException("Cannot initialize Socket implementation"); if (tc < 0 || tc > 255) throw new IllegalArgumentException(); getImpl().setOption(SocketOptions.IP_TOS, new Integer(tc)); }
19,628
public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); inputShutdown = true; }
public void shutdownInput() throws IOException { if (impl != null) impl.shutdownInput(); inputShutdown = true; }
19,629
public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); outputShutdown = true; }
public void shutdownOutput() throws IOException { if (impl != null) impl.shutdownOutput(); outputShutdown = true; }
19,631
public String toString() { return ("Socket " + impl); }
public String toString() { return ("Socket " + impl); }
19,633
public void propertyChange(PropertyChangeEvent evt) { JPopupMenu.this.revalidate(); JPopupMenu.this.repaint(); }
public void propertyChange(PropertyChangeEvent evt) { JPopupMenu.this.revalidate(); JPopupMenu.this.repaint(); }
19,635
public void pack() { super.setSize(null); }
public void pack() { if (! SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { public void run() { show(); } }); } setSize(getPreferredSize()); }
19,636
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++) ...
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++) ...
19,637
public void setLocation(int x, int y) { if (popupLocation == null) popupLocation = new Point(); popupLocation.x = x; popupLocation.y = y; }
public void setLocation(int x, int y) { if (popupLocation == null) popupLocation = new Point(); popupLocation.x = x; popupLocation.y = y; }
19,638
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 void setVisible(final boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
19,639
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 void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
19,640
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 void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); ...
19,641
public abstract int getCaretPosition();
int getCaretPosition();
19,642
public abstract int getSelectionEnd();
int getSelectionEnd();
19,643
public abstract int getSelectionStart();
int getSelectionStart();
19,644
public abstract void select(int start_pos, int end_pos);
void select(int start_pos, int end_pos);
19,645
public abstract void setCaretPosition(int pos);
void setCaretPosition(int pos);
19,646
public abstract void setEditable(boolean editable);
void setEditable(boolean editable);
19,647
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...
19,648
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...
19,650
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...
19,651
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...
19,652
public GlyphView(Element element) { super(element); startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); }
public GlyphView(Element element) { super(element); startOffset = element.getStartOffset(); endOffset = element.getEndOffset(); }
19,654
public Color getBackground() { Element el = getElement(); AttributeSet atts = el.getAttributes(); return StyleConstants.getBackground(atts); }
public Color getBackground() { Element el = getElement(); AttributeSet atts = el.getAttributes(); return (Color) atts.getAttribute(StyleConstants.Background); }
19,656
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...
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...
19,657
public int getEndOffset() { return endOffset; }
public int getEndOffset() { int end = endOffset; if (end < 0) end = super.getEndOffset(); return end; }
19,658
public int getStartOffset() { return startOffset; }
public int getStartOffset() { int start = startOffset; if (start < 0) start = super.getStartOffset(); return start; }
19,659
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory vf) { getParent().preferenceChanged(this, true, false); }
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory vf) { preferenceChanged(this, true, false); }
19,660
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...
public static boolean isNameCharacter(int c, boolean xml11) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | ...
19,661
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 isNameCharacter(int c) { if (xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || (c >= 0x0030 && c <= 0x0039) || c == 0x3a | c == 0x5f | c == 0x2d | c == 0x2e | c == 0xB7 | ...
19,662
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 ...
public static boolean isNameStartCharacter(int c, boolean xml11) { if (input.xml11) return ((c >= 0x0041 && c <= 0x005a) || (c >= 0x0061 && c <= 0x007a) || c == 0x3a | c == 0x5f | (c >= 0xC0 && c <= 0xD6) || (c >= 0xD8 && c <= 0xF6) || ...
19,663
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 ...
private boolean isNameStartCharacter(int c) { if (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 <= 0x2...
19,664
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 isNmtoken(String text, boolean isName) { try { int[] cp = UnicodeReader.toCodePointArray(text); if (cp.length == 0) return false; if (isName) { if (!isNameStartCharacter(cp[0], input.xml11)) return false; } else { ...
19,665
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 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...
19,666
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 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...
19,667
private boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); }
public static boolean isXML11Char(int c) { return ((c >= 0x0001 && c <= 0xD7FF) || (c >= 0xE000 && c < 0xFFFD) || // NB exclude 0xfffd (c >= 0x10000 && c <= 0x10FFFF)); }
19,668
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)); }
public static 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)); }
19,669
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 ...
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 ...
19,670
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 ...
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 ...
19,671
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
public X500DistinguishedName() { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
19,673
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
public X500DistinguishedName(String name) { if (name == null) throw new NullPointerException(); try { parseDN(name, true); } catch (Exception e) { parseDN(name, false); } }
19,674