rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public static File createTempFile(String prefix, String suffix)
public static synchronized File createTempFile(String prefix, String suffix, File directory)
public static File createTempFile(String prefix, String suffix) throws IOException { return createTempFile(prefix, suffix, null); }
return createTempFile(prefix, suffix, null);
if (directory == null) { String dirname = System.getProperty("java.io.tmpdir"); if (dirname == null) throw new IOException("Cannot determine system temporary directory"); directory = new File(dirname); if (! VMFile.exists(directory.path)) throw new IOException("System temporary directory " + directory.getName() + " do...
public static File createTempFile(String prefix, String suffix) throws IOException { return createTempFile(prefix, suffix, null); }
return System.getProperty ("user.dir") + separatorChar + path;
{ String currentDir = System.getProperty("user.dir"); if (currentDir.endsWith(separator)) return currentDir + path; else return currentDir + separator + path; }
public String getAbsolutePath() { if (isAbsolute()) return path; else if (separatorChar == '\\' && path.length() > 0 && path.charAt (0) == '\\') { // On Windows, even if the path starts with a '\\' it is not // really absolute until we prefix the drive specifier from ...
public String[] list()
public String[] list(FilenameFilter filter)
public String[] list() { return list(null); }
return list(null);
checkRead(); if (!exists() || !isDirectory()) return null; String files[] = VMFile.list(path); if (files == null) return null; if (filter == null) return files; int count = 0; for (int i = 0; i < files.length; i++) { if (filter.accept(this, files[i])) ++count; else files[i] = null; } String[] retfiles = new St...
public String[] list() { return list(null); }
public void checkWrite(String filename)
public void checkWrite(FileDescriptor desc)
public void checkWrite(String filename) { checkPermission(new FilePermission(filename, "write")); }
checkPermission(new FilePermission(filename, "write"));
if (desc == null) throw new NullPointerException(); checkPermission(new RuntimePermission("writeFileDescriptor"));
public void checkWrite(String filename) { checkPermission(new FilePermission(filename, "write")); }
public URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) throws URISyntaxException
public URI(String str) throws URISyntaxException
public URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) throws URISyntaxException { this((scheme == null ? "" : scheme + ":") + (userInfo == null && host == null && port == -1 ? "" : "//") + (userInfo == null ? "" : quoteUserInfo...
this((scheme == null ? "" : scheme + ":") + (userInfo == null && host == null && port == -1 ? "" : " + (userInfo == null ? "" : quoteUserInfo(userInfo) + "@") + (host == null ? "" : quoteHost(host)) + (port == -1 ? "" : ":" + String.valueOf(port)) + (path == null ? "" : quotePath(path)) + (query == null ? "" : "?" + qu...
this.string = str; parseURI(str);
public URI(String scheme, String userInfo, String host, int port, String path, String query, String fragment) throws URISyntaxException { this((scheme == null ? "" : scheme + ":") + (userInfo == null && host == null && port == -1 ? "" : "//") + (userInfo == null ? "" : quoteUserInfo...
public URL(String spec) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null);
public URL(String protocol, String host, int port, String file) throws MalformedURLException { this(protocol, host, port, file, null);
public URL(String spec) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null); }
public static SAXParserFactory newInstance() { try { return (SAXParserFactory) ClassStuff.createFactory ( defaultPropName, "gnu.xml.aelfred2.JAXPFactory"); } catch (ClassCastException e) { throw new FactoryConfigurationError (e, "Factory class is the wrong type"); } }
public static SAXParserFactory newInstance() throws FactoryConfigurationError { ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader == null) { loader = SAXParserFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if...
public static SAXParserFactory newInstance() { try { return (SAXParserFactory) ClassStuff.createFactory ( defaultPropName, "gnu.xml.aelfred2.JAXPFactory"); } catch (ClassCastException e) { throw new FactoryConfigurationError (e, "Factory class is the wrong type"); } }
public void setNamespaceAware(boolean value) { namespaceAware = value; }
public void setNamespaceAware(boolean awareness) { namespaceAware = awareness; }
public void setNamespaceAware(boolean value) { namespaceAware = value; } // setNamespaceAware()
public void setValidating(boolean value) { validating = value; }
public void setValidating(boolean validating) { this.validating = validating; }
public void setValidating(boolean value) { validating = value; } // setValidating()
public FactoryConfigurationError(Exception ex, String msg) { super(msg); exception = ex; }
public FactoryConfigurationError() { super(); }
public FactoryConfigurationError(Exception ex, String msg) { super(msg); exception = ex; } // FactoryConfigurationError()
if (c instanceof JInternalFrame) {
if (c instanceof JInternalFrame && !JNodeToolkit.getJNodeToolkit().isWindow(c)) {
public void componentAdded(ContainerEvent event) { final Component c = event.getChild(); if (c instanceof JInternalFrame) { taskBar.windowBar.addFrame((JInternalFrame) c); } else { log.info("componentAdded: " + c.getClass().getName()); } ...
private JFrame f;
private JFrame frame; private JColorChooser colorChooser;
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER);
frame = new JFrame("Desktop color"); colorChooser = new JColorChooser(); frame.add(colorChooser, BorderLayout.CENTER);
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
desktop.setBackground(color_chooser.getColor()); f.setVisible(false);
desktop.setBackground(colorChooser.getColor()); frame.setVisible(false);
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
desktop.setBackground(color_chooser.getColor());
desktop.setBackground(colorChooser.getColor());
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
f.setVisible(false);
frame.setVisible(false);
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
f.add(buttons, BorderLayout.SOUTH); }
frame.add(buttons, BorderLayout.SOUTH);
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
f.setSize(500, 400); f.setVisible(true); f.setLocation(x, y);
frame.setSize(500, 400); frame.setVisible(true); frame.setLocation(x, y);
public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) ...
private JFrame f;
private JFrame frame; private JColorChooser colorChooser;
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER);
frame = new JFrame("Desktop color"); colorChooser = new JColorChooser(); frame.add(colorChooser, BorderLayout.CENTER);
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
desktop.setBackground(color_chooser.getColor()); f.setVisible(false);
desktop.setBackground(colorChooser.getColor()); frame.setVisible(false);
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
desktop.setBackground(color_chooser.getColor());
desktop.setBackground(colorChooser.getColor());
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
f.setVisible(false);
frame.setVisible(false);
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
f.add(buttons, BorderLayout.SOUTH); }
frame.add(buttons, BorderLayout.SOUTH);
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
f.setSize(500, 400); f.setVisible(true); f.setLocation(x, y);
frame.setSize(500, 400); frame.setVisible(true); frame.setLocation(x, y);
public void run() { final ClassLoader cl = getClass().getClassLoader(); final ExtensionPoint appsEP; if (cl instanceof PluginClassLoader) { appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps"); ...
if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER);
frame = new JFrame("Desktop color"); colorChooser = new JColorChooser(); frame.add(colorChooser, BorderLayout.CENTER);
public void actionPerformed(ActionEvent e) { if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER); ...
desktop.setBackground(color_chooser.getColor()); f.setVisible(false);
desktop.setBackground(colorChooser.getColor()); frame.setVisible(false);
public void actionPerformed(ActionEvent e) { if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER); ...
desktop.setBackground(color_chooser.getColor());
desktop.setBackground(colorChooser.getColor());
public void actionPerformed(ActionEvent e) { if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER); ...
f.setVisible(false);
frame.setVisible(false);
public void actionPerformed(ActionEvent e) { if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER); ...
f.add(buttons, BorderLayout.SOUTH); }
frame.add(buttons, BorderLayout.SOUTH);
public void actionPerformed(ActionEvent e) { if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER); ...
f.setSize(500, 400); f.setVisible(true); f.setLocation(x, y);
frame.setSize(500, 400); frame.setVisible(true); frame.setLocation(x, y);
public void actionPerformed(ActionEvent e) { if (f == null) { f = new JFrame("Desktop color"); final JColorChooser color_chooser = new JColorChooser(); f.add(color_chooser, BorderLayout.CENTER); ...
desktop.setBackground(color_chooser.getColor()); f.setVisible(false);
desktop.setBackground(colorChooser.getColor()); frame.setVisible(false);
public void actionPerformed(ActionEvent event) { desktop.setBackground(color_chooser.getColor()); f.setVisible(false); }
desktop.setBackground(color_chooser.getColor());
desktop.setBackground(colorChooser.getColor());
public void actionPerformed(ActionEvent event) { desktop.setBackground(color_chooser.getColor()); }
f.setVisible(false);
frame.setVisible(false);
public void actionPerformed(ActionEvent event) { desktop.setBackground(oldColor); f.setVisible(false); }
return handler.toExternalForm(this); }
return ph.toExternalForm(this); }
public String toString() { // Identical to toExternalForm(). return handler.toExternalForm(this); }
public Dimension(int w, int h)
public Dimension()
public Dimension(int w, int h) { width = w; height = h; }
width = w; height = h;
public Dimension(int w, int h) { width = w; height = h; }
public JLabel(Icon image) { this("", image, 0); }
public JLabel() { this("", null, 0); }
public JLabel(Icon image) { this("", image, 0); }
public void add(Component comp, Object constraints)
public Component add(Component comp)
public void add(Component comp, Object constraints) { addImpl(comp, constraints, -1); }
addImpl(comp, constraints, -1);
addImpl(comp, null, -1); return comp;
public void add(Component comp, Object constraints) { addImpl(comp, constraints, -1); }
if (isShowing())
public void repaint() { if (isShowing()) repaint(0, 0, 0, width, height); }
public JPopupMenu(String label) {
public JPopupMenu() {
public JPopupMenu(String label) { // TODO } // JPopupMenu()
public JMenuItem(String text) {
public JMenuItem() {
public JMenuItem(String text) { // TODO } // JMenuItem()
public void addActionListener(ActionListener l) { getModel().addActionListener(l); }
public void addActionListener(ActionListener l) { listenerList.add(ActionListener.class, l); }
public void addActionListener(ActionListener l) { getModel().addActionListener(l); }
public JFrame(String title) { super(title); frameInit(); }
public JFrame() { super("JFrame"); frameInit(); }
public JFrame(String title) { super(title); frameInit(); }
public JButton(String text) { this(text, null); }
public JButton() { this(null, null); }
public JButton(String text) { this(text, null); }
public abstract Object clone ();
Object clone();
public abstract Object clone ();
public abstract char current ();
char current();
public abstract char current ();
public abstract char first ();
char first();
public abstract char first ();
public abstract char last ();
char last();
public abstract char last ();
public abstract char previous ();
char previous();
public abstract char previous ();
public static KeyStroke getKeyStroke(String string) { return null;
public static KeyStroke getKeyStroke(char keyChar) { KeyStroke key; key = new KeyStroke(); key.keyChar = keyChar; return key;
public static KeyStroke getKeyStroke(String string) { return null; // TODO } // getKeyStroke()
public static ResourceBundle getBundle(String baseName, Locale locale)
public static ResourceBundle getBundle(String baseName)
public static ResourceBundle getBundle(String baseName, Locale locale) { ClassLoader cl = security.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, locale, cl); }
return getBundle(baseName, locale, cl);
return getBundle(baseName, Locale.getDefault(), cl);
public static ResourceBundle getBundle(String baseName, Locale locale) { ClassLoader cl = security.getCallingClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); return getBundle(baseName, locale, cl); }
void showDocument(URL url, String target);
void showDocument(URL url);
void showDocument(URL url, String target);
public ErrorHandler getErrorHandler() { return errorHandler; }
public abstract ErrorHandler getErrorHandler();
public ErrorHandler getErrorHandler() { return errorHandler; }
if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.xmlschema.XMLSchemaSchemaFactory(); if (XMLConstants.RELAXNG_NS_URI.equals(schemaLanguage)) return new gnu.xml.validation.relaxng.RELAXNGSchemaFactory();
public static final SchemaFactory newInstance(String schemaLanguage) { // TODO throw new IllegalArgumentException(schemaLanguage); }
public void setErrorHandler(ErrorHandler errorHandler) { this.errorHandler = errorHandler; }
public abstract void setErrorHandler(ErrorHandler errorHandler);
public void setErrorHandler(ErrorHandler errorHandler) { this.errorHandler = errorHandler; }
public StreamSource(File file) { setSystemId (file);
public StreamSource() {
public StreamSource(File file) { setSystemId (file); }
public LinkedHashSet(Collection<? extends T> c)
public LinkedHashSet()
public LinkedHashSet(Collection<? extends T> c) { super(c); }
super(c);
super();
public LinkedHashSet(Collection<? extends T> c) { super(c); }
public LinkedHashMap(int initialCapacity, float loadFactor)
public LinkedHashMap()
public LinkedHashMap(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); accessOrder = false; }
super(initialCapacity, loadFactor);
super();
public LinkedHashMap(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor); accessOrder = false; }
{
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new TextNode(disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
}
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new TextNode(disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
}
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { String value = ""; Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); if (children != null) ...
{
final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (stylesheet.terminated) { return; } if (Thread.currentThread().isInterrupted()) { // Try to hea...
}
final void apply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (stylesheet.terminated) { return; } if (Thread.currentThread().isInterrupted()) { // Try to hea...
public static String stringValue(Node node)
public static String stringValue(Collection nodeSet)
public static String stringValue(Node node) { return stringValue(node, false); }
return stringValue(node, false);
StringBuffer buf = new StringBuffer(); for (Iterator i = nodeSet.iterator(); i.hasNext(); ) { buf.append(stringValue((Node) i.next())); } return buf.toString();
public static String stringValue(Node node) { return stringValue(node, false); }
public RuntimeException(String s) { super(s);
public RuntimeException() {
public RuntimeException(String s) { super(s); }
setLayout(createLayoutManager());
public JViewport() { setOpaque(true); setScrollMode(BLIT_SCROLL_MODE); updateUI(); }
if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener);
public void setView(Component v) { while (getComponentCount() > 0) remove(0); if (v != null) { add(v); fireStateChanged(); } }
for (int i = 0; i < ncomponents; ++i)
Component r = component[index]; ComponentListener[] list = r.getComponentListeners(); for (int j = 0; j < list.length; j++) r.removeComponentListener(list[j]); r.removeNotify(); System.arraycopy(component, index + 1, component, index, ncomponents - index - 1); component[--ncomponents] = null; invalidate(); if (lay...
public void remove(Component comp) { synchronized (getTreeLock ()) { for (int i = 0; i < ncomponents; ++i) { if (component[i] == comp) { remove(i); break; } } } }
public Point(int x, int y)
public Point()
public Point(int x, int y) { this.x = x; this.y = y; }
this.x = x; this.y = y;
public Point(int x, int y) { this.x = x; this.y = y; }
public static String getAlgorithmProperty(String algName, String propName) {
public static String getAlgorithmProperty(String algName, String propName) { if (algName == null || propName == null) return null; String property = String.valueOf(propName) + "." + String.valueOf(algName); Provider p; for (Iterator i = providers.iterator(); i.hasNext(); ) { p = (Provider) i.next(); for (Iterator j = ...
public static String getAlgorithmProperty(String algName, String propName) { /* TODO: Figure out what this actually does */ return null; }
if (p.getName() == name) return p;
if (p.getName().equals(name)) return p;
public static Provider getProvider(String name) { Provider p; int max = providers.size(); for (int i = 0; i < max; i++) { p = (Provider) providers.elementAt(i); if (p.getName() == name) return p; } return null; }
int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == provider .getName()) return -1;
int max = providers.size (); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName().equals(provider.getName())) return -1;
public static int insertProviderAt(Provider provider, int position) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("insertProvider." + provider.getName()); position--; int max = providers.size(); for (int i = 0; i < max; i...
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return;
private static boolean loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return false;
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int...
System.err.println("Error loading security provider "
{ System.err.println ("WARNING: Error loading security provider "
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int...
} catch (FileNotFoundException ignored) { } catch (IOException ignored) {
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int...
catch (IOException ignored) { result = false; } return result;
private static void loadProviders(String baseUrl, String vendor) { if (baseUrl == null || vendor == null) return; String secfilestr = baseUrl + "/security/" + vendor + ".security"; try { InputStream fin = new URL(secfilestr).openStream(); secprops.load(fin); int...
Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName() == name) {
int max = providers.size (); for (int i = 0; i < max; i++) { if (((Provider) providers.elementAt(i)).getName().equals(name)) {
public static void removeProvider(String name) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkSecurityAccess("removeProvider." + name); Provider p = null; int max = providers.size(); for (int i = 0; i < max; i++) { if (((Provider) providers....
return getProperty(key, null);
Properties prop = this; do { String value = (String) prop.get(key); if (value != null) return value; prop = prop.defaults; } while (prop != null); return null;
public String getProperty(String key) { return getProperty(key, null); }
public InvalidParameterException(String msg)
public InvalidParameterException()
public InvalidParameterException(String msg) { super(msg); }
super(msg);
public InvalidParameterException(String msg) { super(msg); }
public <T> T[] toArray(T[] a)
public Object[] toArray()
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) ...
if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator();
Object[] a = new Object[size];
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) ...
{ try { a[pos] = (T) (itr.next()); } catch (ClassCastException exception) { throw new ArrayStoreException("The element is of the wrong type "+ "for storing in this array."); } }
a[pos] = itr.next();
public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) a = (T[]) Array.newInstance(a.getClass().getComponentType(), size); else if (a.length > size) a[size] = null; Iterator<E> itr = iterator(); for (int pos = 0; pos < size; pos++) ...
public final InputStream openStream() throws IOException {
public InputStream openStream() throws IOException {
public final InputStream openStream() throws IOException { return openConnection().getInputStream(); }
if (line == null) line = "";
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public synchronized T remove(int index)
public boolean remove(Object o)
public synchronized T remove(int index) { checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; ...
checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; return temp;
return removeElement(o);
public synchronized T remove(int index) { checkBoundExclusive(index); T temp = elementData[index]; modCount++; elementCount--; if (index < elementCount) System.arraycopy(elementData, index + 1, elementData, index, elementCount - index); elementData[elementCount] = null; ...
public final VmArrayClass getArrayClass() { return getArrayClass(null);
final VmArrayClass getArrayClass(String arrayClassName) { if (arrayClass == null) { arrayClass = createArrayClass(true, arrayClassName); } else { arrayClass.link(); } return arrayClass;
public final VmArrayClass getArrayClass() { return getArrayClass(null); }