rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public abstract Dimension minimumSize(int len);
Dimension minimumSize(int len);
public abstract Dimension minimumSize(int len);
public abstract Dimension preferredSize(int len);
Dimension preferredSize(int len);
public abstract Dimension preferredSize(int len);
public abstract void setEchoChar(char echo_char);
void setEchoChar(char echo_char);
public abstract void setEchoChar(char echo_char);
public abstract void setEchoCharacter(char echo_char);
void setEchoCharacter(char echo_char);
public abstract void setEchoCharacter(char echo_char);
AbstractMap copy = (AbstractMap) super.clone();
AbstractMap<K, V> copy = (AbstractMap<K, V>) super.clone();
protected Object clone() throws CloneNotSupportedException { AbstractMap copy = (AbstractMap) super.clone(); // Clear out the caches; they are stale. copy.keys = null; copy.values = null; return copy; }
public abstract Set entrySet();
public abstract Set<Map.Entry<K, V>> entrySet();
public abstract Set entrySet();
&& entrySet().equals(((Map) o).entrySet())));
&& entrySet().equals(((Map<K, V>) o).entrySet())));
public boolean equals(Object o) { return (o == this || (o instanceof Map && entrySet().equals(((Map) o).entrySet()))); }
return new Iterator()
return new Iterator<K>()
public Set<K> keySet() { if (keys == null) keys = new AbstractSet<K>() { /** * Retrieves the number of keys in the backing map. * * @return The number of keys. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if the backing map contains the ...
return new Iterator()
return new Iterator<K>()
public Iterator<K> iterator() { return new Iterator() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</code> wi...
Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator();
Iterator entries2 = m.entrySet().iterator(); Iterator<Map.Entry<? extends K, ? extends V>> entries = (Iterator<Map.Entry<? extends K, ? extends V>>) entries2;
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
Map.Entry<K, V> entry = entries.next();
Map.Entry<? extends K, ? extends V> entry = entries.next();
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
return new Iterator()
return new Iterator<V>()
public Collection<V> values() { if (values == null) values = new AbstractCollection<V>() { /** * Returns the number of values stored in * the backing map. * * @return The number of values. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if ...
return new Iterator()
return new Iterator<V>()
public Iterator<V> iterator() { return new Iterator() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</call> ...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return PagesPerMinuteColor.class; }
public final String getName()
public String getName()
public final String getName() { return "pages-per-minute-color"; }
b.updateUI();
protected void addImpl(Component component, Object constraints, int index) { // XXX: Sun says disable button but test cases show otherwise. super.addImpl(component, constraints, index); // if we added a Swing Button then adjust this a little if (component instanceof AbstractButton) { Abstract...
}
void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care...
adjustVisibility(this);
void moveDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); adjustVisibility(this); } }
adjustVisibility(this);
void setDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); ...
if (p != null && p instanceof JComponent)
if (p instanceof JComponent)
public void scrollRectToVisible(Rectangle r) { Component p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); }
public void setRepeats(boolean flag)
public void setRepeats(boolean r)
public void setRepeats(boolean flag) { repeat_ticks = flag; }
repeat_ticks = flag;
repeats = r;
public void setRepeats(boolean flag) { repeat_ticks = flag; }
public abstract void removeAll();
void removeAll();
public abstract void removeAll();
public abstract void delItems(int start_index, int end_index);
void delItems(int start_index, int end_index);
public abstract void delItems(int start_index, int end_index);
public abstract void deselect(int index);
void deselect(int index);
public abstract void deselect(int index);
public abstract int[] getSelectedIndexes();
int[] getSelectedIndexes();
public abstract int[] getSelectedIndexes();
public abstract void makeVisible(int index);
void makeVisible(int index);
public abstract void makeVisible(int index);
public abstract Dimension minimumSize(int s);
Dimension minimumSize(int s);
public abstract Dimension minimumSize(int s);
public abstract Dimension preferredSize(int s);
Dimension preferredSize(int s);
public abstract Dimension preferredSize(int s);
public abstract void setMultipleMode(boolean multi);
void setMultipleMode(boolean multi);
public abstract void setMultipleMode(boolean multi);
resolver = new ExtendedResolver();
String[] server = new String[]{_dnsserver.toString()}; resolver = new ExtendedResolver(server); System.out.println(resolver.getResolvers().length);
public static void addDnsServer(ProtocolAddress _dnsserver) throws NetworkException { if (resolver == null) { try { // resolver = (ExtendedResolver) Lookup.getDefaultResolver(); if (resolver == null) { resolver = new ExtendedResolver(); Lookup.setDefaultR...
if (resolvers == null) { resolvers = new Hashtable(); }
public static void addDnsServer(ProtocolAddress _dnsserver) throws NetworkException { if (resolver == null) { try { // resolver = (ExtendedResolver) Lookup.getDefaultResolver(); if (resolver == null) { resolver = new ExtendedResolver(); Lookup.setDefaultR...
System.out.println("hh0 " + hostname);
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
for (int i = 0; i < protocolAddresses.length; i++) { ProtocolAddress protocolAddress = protocolAddresses[i]; System.out.println("hh0' " + protocolAddress); }
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println("hh1");
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println("hh3");
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println("hh4");
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println("hh5");
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println(record.getName() + " " + record.rdataToString()); }
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println("lookup.getErrorString() " + lookup.getErrorString());
throw new UnknownHostException(lookup.getErrorString());
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
System.out.println("hh6");
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
SimpleResolver simpleResolver = (SimpleResolver) resolvers.remove(key); resolver.deleteResolver(simpleResolver);
org.xbill.DNS.Resolver resolv = (org.xbill.DNS.Resolver) resolvers.remove(key); if (resolver.getResolvers().length == 1) resolver = null; else resolver.deleteResolver(resolv);
public static void removeDnsServer(ProtocolAddress _dnsserver) { if (resolver == null) { return; } String key = _dnsserver.toString(); if (resolvers.containsKey(key)) { SimpleResolver simpleResolver = (SimpleResolver) resolvers.remove(key); resolver.deleteResolver(simpleResolver); ...
return new HashIterator<K>(KEYS);
return new KeyIterator();
public Set<K> keySet() { if (keys == null) { // Create a synchronized AbstractSet with custom implementations of // those methods that can be overridden easily and efficiently. Set<K> r = new AbstractSet<K>() { public int size() { return size; ...
return "fidelity";
return "ipp-attribute-fidelity";
public String getName() { return "fidelity"; }
public int nextInt(int n)
public int nextInt()
public int nextInt(int n) { if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) // i.e., n is a power of 2 return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - ...
if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - 1) < 0); return val;
return next(32);
public int nextInt(int n) { if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) // i.e., n is a power of 2 return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - ...
public NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed)
public NO_RESOURCES(String message)
public NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed) { super(a_reason, a_minor, a_completed); }
super(a_reason, a_minor, a_completed);
super(message, 0, CompletionStatus.COMPLETED_NO);
public NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed) { super(a_reason, a_minor, a_completed); }
}
public void setSelectedItem(Object object) { selectedItem = object; fireContentsChanged(this, -1, -1); }
String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes = System.getProperty (Context.URL_PKG_PREFIXES); if (prefixes == null) {
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
prefixes = "com.sun.jndi.url";
String defaultPrefix = "com.sun.jndi.url"; StringBuffer allPrefixes = new StringBuffer(); String prefixes; if (environment != null) { prefixes = (String) environment.get(Context.URL_PKG_PREFIXES); if (prefixes != null) allPrefixes.append(prefixes);
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
StringTokenizer tokens = new StringTokenizer (prefixes, ":"); while (tokens.hasMoreTokens ())
StringTokenizer tokens = new StringTokenizer(allPrefixes.toString(), ":"); while (tokens.hasMoreTokens())
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
Class factoryClass = Class.forName (aTry + "." + scheme, true, Thread.currentThread().getContextClassLoader()); ObjectFactory factory = (ObjectFactory) factoryClass.newInstance (); Object obj = factory.getObjectInstance (refInfo, name, nameCtx, environment);
String tryClass = aTry + "." + scheme; Class factoryClass = forName(tryClass); if (factoryClass != null) { ObjectFactory factory = (ObjectFactory) factoryClass.newInstance(); Object obj = factory.getObjectInstance(refInfo, name, nameCtx, environment);
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
}
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
throw new IllegalStateException ("builder already installed");
throw new IllegalStateException ("ctx factory builder already installed");
public static void setInitialContextFactoryBuilder (InitialContextFactoryBuilder builder) throws NamingException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkSetFactory (); // Once the builder is installed it cannot be replaced. if (icfb != null) throw new Ill...
throw new IllegalStateException ("builder already installed");
throw new IllegalStateException ("object factory builder already installed");
public static void setObjectFactoryBuilder (ObjectFactoryBuilder builder) throws NamingException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkSetFactory (); // Once the builder is installed it cannot be replaced. if (ofb != null) throw new IllegalStateExceptio...
public NoInitialContextException(String msg)
public NoInitialContextException()
public NoInitialContextException(String msg) { super(msg); }
super(msg);
super();
public NoInitialContextException(String msg) { super(msg); }
ObjectFactory createObjectFactory(Object obj,
ObjectFactory createObjectFactory(Object refInfo,
ObjectFactory createObjectFactory(Object obj, Hashtable environment) throws NamingException;
Object getObjectInstance (Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception;
Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable environment) throws Exception;
Object getObjectInstance (Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception;
public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented"); }
public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException { try { return (Remote) activator.activate(this, force).get(); } catch (IOException e) { ActivationException acex = new ActivationException("id "+uid, e); throw acex; } catch (ClassNotFoundException e) { Activation...
public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");}
InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y;
throw new InvalidKeySpecException(x.getMessage(), x);
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPrivateCrtKeySpec) { RSAPrivateCrtKeySpec spec = (RSAPrivateCrtKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); B...
InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y;
throw new InvalidKeySpecException(x.getMessage(), x);
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPublicKeySpec) { RSAPublicKeySpec spec = (RSAPublicKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); return new GnuR...
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv)
public GnuRSAPrivateKey(BigInteger p, BigInteger q, BigInteger e, BigInteger d)
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID ...
super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID : preferredFormat, n, e); this.d = d; this.p = p; this.q = q; this.dP = dP; this.dQ = dQ; this.qInv = qInv;
this(Registry.RAW_ENCODING_ID, p, q, e, d);
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID ...
public GnuRSAPublicKey(int preferredFormat, BigInteger n, BigInteger e)
public GnuRSAPublicKey(final BigInteger n, final BigInteger e)
public GnuRSAPublicKey(int preferredFormat, BigInteger n, BigInteger e) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e); }
super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e);
this(Registry.RAW_ENCODING_ID, n, e);
public GnuRSAPublicKey(int preferredFormat, BigInteger n, BigInteger e) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e); }
throw new IllegalArgumentException("Unexpected OID: " + algOID);
throw new InvalidParameterException("Unexpected OID: " + algOID);
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI...
else if (policy == NEVER_UPDATE)
else if (policy == NEVER_UPDATE || (! SwingUtilities.isEventDispatchThread() && policy == UPDATE_WHEN_ON_EDT))
public void removeUpdate(DocumentEvent event) { if (policy == ALWAYS_UPDATE || (SwingUtilities.isEventDispatchThread() && policy == UPDATE_WHEN_ON_EDT)) { int dot = getDot(); setDot(dot - event.getLength()); } else if (policy == NEVER_UPDATE) { i...
this.dot = dot;
Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0);
public void moveDot(int dot) { if (dot >= 0) { this.dot = dot; handleHighlight(); adjustVisibility(this); appear(); } }
this.mark = dot;
this.mark = this.dot;
public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = dot; handleHighlight(); adjustVisibility(this); appear(); } }
int attr = readChar(ch); return ((((1 << (attr & TYPE_MASK)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0) && (attr & NO_BREAK_MASK) == 0) || (ch <= '\u001F' && ((1 << ch) & ((1 << '\t') | (1 << '\n') | (1 << '\u000B') | (1 << '\u000C') | (1 << '\r') | (1 << '\u001C') | (1 << '\...
return isWhitespace((int) ch);
public static boolean isWhitespace(char ch) { int attr = readChar(ch); return ((((1 << (attr & TYPE_MASK)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0) && (attr & NO_BREAK_MASK) == 0) || (ch <= '\u001F' && ((...
return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << DECIMAL_DIGIT_NUMBER))) != 0;
return isLetterOrDigit((int)ch);
public static boolean isLetterOrDigit(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << DECIMAL_DIGIT_NUMBER)))...
{
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
}
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
if (result != null && !result.selfTest()) {
if (result != null && ! result.selfTest())
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
return isMCNodeLocal();
return super.isMCNodeLocal();
public boolean isMCNodeLocal() { return isMCNodeLocal(); }
return isMCOrgLocal();
return super.isMCOrgLocal();
public boolean isMCOrgLocal() { return isMCOrgLocal(); }
public abstract void setAlignment(int alignment);
void setAlignment(int alignment);
public abstract void setAlignment(int alignment);
public abstract void setText(String text);
void setText(String text);
public abstract void setText(String text);
* @throws ConcurrentModificationException if the * list has been modified elsewhere.
public Iterator<E> iterator() { // Bah, Sun's implementation forbids using listIterator(0). return new Iterator<E>() { private int pos = 0; private int size = size(); private int last = -1; private int knownMod = modCount; // This will get inlined, since it is private. /** ...
checkMod();
public Iterator<E> iterator() { // Bah, Sun's implementation forbids using listIterator(0). return new Iterator<E>() { private int pos = 0; private int size = size(); private int last = -1; private int knownMod = modCount; // This will get inlined, since it is private. /** ...
if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index)
if (index == 0 || name.lastIndexOf(':') != index)
static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMExcept...
computeTime(); computeFields();
public void setTimeZone(TimeZone zone) { this.zone = zone; }
fillPolygon(Polygon polygon) { fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints); }
fillPolygon(int xPoints[], int yPoints[], int npoints);
fillPolygon(Polygon polygon){ fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);}
drawPolygon(Polygon polygon) { drawPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints); }
drawPolygon(int xPoints[], int yPoints[], int npoints);
drawPolygon(Polygon polygon){ drawPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);}
public static final ByteBuffer wrap (byte[] array)
public static final ByteBuffer wrap (byte[] array, int offset, int length)
public static final ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); }
return wrap (array, 0, array.length);
return new ByteBufferImpl (array, 0, array.length, offset + length, offset, -1, false);
public static final ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); }
public static void fill(byte[] a, int fromIndex, int toIndex, byte val)
public static void fill(boolean[] a, boolean val)
public static void fill(byte[] a, int fromIndex, int toIndex, byte val) { if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val; }
if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val;
fill(a, 0, a.length, val);
public static void fill(byte[] a, int fromIndex, int toIndex, byte val) { if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val; }
{
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
}
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
throw new RuntimeException("nextRandomBytes(): " + String.valueOf(x));
throw new RuntimeException("nextRandomBytes(): " + x);
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
throw new RuntimeException("nextRandomBytes(): " + String.valueOf(x)); }
throw new RuntimeException("nextRandomBytes(): " + x);
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
{
private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ...
}
private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ...
{
public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } }
}
public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } }
{
public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } }
}
public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } }