rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key)
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key, java.lang.Object an_identity )
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key) { object = _object; port = _port; key = _key; }
identity = an_identity;
cObject(org.omg.CORBA.Object _object, int _port, byte[] _key) { object = _object; port = _port; key = _key; }
return add(generateObjectKey(object), object, port);
return add(generateObjectKey(object), object, port, null);
public cObject add(org.omg.CORBA.Object object, int port) { return add(generateObjectKey(object), object, port); }
}
public cObject get(byte[] key) { return (cObject) objects.get(key); }
if (stored_object.equals(ref.object))
if (stored_object.equals(ref.object) || stored_object._is_equivalent(ref.object) )
public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object)) return...
}
public cObject getKey(org.omg.CORBA.Object stored_object) { Map.Entry item; Iterator iter = objects.entrySet().iterator(); cObject ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (cObject) item.getValue(); if (stored_object.equals(ref.object)) return...
}
public void remove(org.omg.CORBA.Object object) { cObject ref = getKey(object); if (ref != null) objects.remove(ref.key); }
if (properties == null) return null; return properties.get(string);
if (string == null) throw new NullPointerException("The property name cannot be null."); Object result = Image.UndefinedProperty; if (properties != null) { Object v = properties.get(string); if (v != null) result = v; } return result;
public Object getProperty(String string) { if (properties == null) return null; return properties.get(string); }
if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.len...
public void addSelectionPath(TreePath value0) { // TODO }
if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = v0;...
public void addSelectionPaths(TreePath[] value0) { // TODO }
selection = null;
public void clearSelection() { // TODO }
for (int i = listeners.length - 1; i >= 0; --i)
for (int i = 0; i < listeners.length; ++i)
protected void fireValueChanged(TreeSelectionEvent event) { TreeSelectionListener[] listeners = getTreeSelectionListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].valueChanged(event); }
return (TreeSelectionListener[]) listenerList.getListeners(TreeSelectionListener.class);
return (TreeSelectionListener[]) getListeners(TreeSelectionListener.class);
public TreeSelectionListener[] getTreeSelectionListeners() { return (TreeSelectionListener[]) listenerList.getListeners(TreeSelectionListener.class); }
return false;
if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false;
public boolean isPathSelected(TreePath value0) { return false; // TODO }
int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0, index); System.arraycopy(selection, index + 1, temp, index, selection.length -...
public void removeSelectionPath(TreePath value0) { // TODO }
if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { index = x; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection...
public void removeSelectionPaths(TreePath[] value0) { // TODO }
throw new MissingResourceException("Key not found", getClass().getName(), key);
String className = getClass().getName(); throw new MissingResourceException("Key '" + key + "'not found in Bundle: " + className, className, key);
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) { Object o = bundle.handleGetObject(key); if (o != null) return o; } throw new MissingResourceException("Key not found", getClass().getName(), ...
("Failed to load bundle", localizedName, "");
("Failed to load bundle: " + localizedName, localizedName, "");
private static ResourceBundle tryBundle(String localizedName, ClassLoader classloader) { ResourceBundle bundle = null; try { Class rbClass; if (classloader == null) rbClass = Class.forName(localizedName); else rbClass = c...
int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000;
int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000;
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
hour, minute, seconds, millis, fields[ZONE_OFFSET], fields[DST_OFFSET]
hour, minute, seconds, millis, zoneOffs, 0
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
for (int i = 0; i < FIELD_COUNT - 2; i++)
for (int i = 0; i < FIELD_COUNT; i++)
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true;
public final void clear() { isTimeSet = false; areFieldsSet = false; int hour = fields[ZONE_OFFSET] / (60 * 60 * 1000); int minute = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (fields[ZONE_OFFSET] - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int...
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Table.background")); table.setSelectionForeground(defaults...
LookAndFeel.installColorsAndFont(table, "Table.background", "Table.foreground", "Table.font"); table.setGridColor(UIManager.getColor("Table.gridColor")); table.setSelectionForeground(UIManager.getColor("Table.selectionForeground")); table.setSelectionBackground(UIManager.getColor("Table.selectionBackground"));
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
highlightCellBorder = defaults.getBorder("Table.focusCellHighlightBorder");
highlightCellBorder = UIManager.getBorder("Table.focusCellHighlightBorder");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
rendererPane = new CellRendererPane();
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); table.setFont(defaults.getFont("Table.font")); table.setGridColor(defaults.getColor("Table.gridColor")); table.setForeground(defaults.getColor("Table.foreground")); table.setBackground(defaults.getColor("Tabl...
int modelCol = col.getModelIndex();
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
TableCellRenderer rend = table.getCellRenderer(r, c); Component comp = table.prepareRenderer(rend, r, c); gfx.translate(x, y); comp.setBounds(new Rectangle(0, 0, width, height)); if (comp instanceof JComponent) { if (table.getSelectionModel().getLeadSelectionIndex() == r && table.getColumnModel().getSelectionModel()....
paintCell( gfx, r, c, bounds, table.getCellRenderer(r, c), table.getModel(), table.getSelectionModel().getLeadSelectionIndex(), table.getColumnModel().getSelectionModel().getLeadSelectionIndex());
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); TableColumnModel cols = table.getColumnModel(); int height = table.getRowHeight(); int x0 =...
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("addDirectory in readonly filesystem"); }
public FSEntry addDirectory(String name) throws IOException { final long parentCluster; if (file == null) { parentCluster = 0; } else { parentCluster = file.getStartCluster(); } return addFatDirectory(name, parentCluster); }
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("addFile in readonly filesystem"); }
protected synchronized FatDirEntry addFatFile(String nameExt) throws IOException { if (getFatEntry(nameExt) != null) { throw new IOException("File already exists" + nameExt); } final FatDirEntry newEntry = new FatDirEntry(this, splitName(nameExt), splitExt(nameExt)); int size = entries.size(); for (int i = 0; i...
ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); if (dir.exists() && dir.isDirectory()) { System.setProperty("user.dir", dir.getAbsoluteFile().getCanonicalPath()); } else if("/".equals(dir.getCanonicalPath())) { System.getProperties().setProperty("user.dir", "/"); } else { Sy...
new DirCommand().execute(new CommandLine(args), System.in, System.out, System.err);
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); if (dir.exists() && dir.isDirectory()) { System.setProperty("user.dir", dir.getAbsoluteFile().getCanonicalPath()); } else if("/".equals(dir.getCanonicalPath())) { ...
emmit(ins.getMnemonic(), ins.getOperands(), getOperandSize(ins));
emit(ins.getMnemonic(), ins.getOperands(), getOperandSize(ins));
private void doAssembly() { for (int i = 0; i < modules.size(); i++) { ((AssemblerModule) modules.get(i)).setNativeStream(nativeStream); } for (Iterator it = instructions.iterator(); it.hasNext();) { Instruction ins = (Instruction) it.next(); //handle prefixes ...
fireContentsChanged(this, index, index);
fireIntervalAdded(this, index, index);
public void add(int index, Object element) { elements.add(index, element); fireContentsChanged(this, index, index); }
fireIntervalAdded(this, elements.size(), elements.size());
fireIntervalAdded(this, s, s);
public void addElement(Object element) { elements.add(element); fireIntervalAdded(this, elements.size(), elements.size()); }
fireIntervalRemoved(this, 0, elements.size());
fireIntervalRemoved(this, 0, s - 1); }
public void clear() { elements.clear(); fireIntervalRemoved(this, 0, elements.size()); }
if (oldSize < size) { fireIntervalAdded(this, oldSize, size - 1); } else if (oldSize > size) { this.fireIntervalRemoved(this, size, oldSize - 1); }
public void setSize(int size) { elements.setSize(size); }
return accessibleName == null ? getName() : accessibleName;
return accessibleName;
public String getAccessibleName() { return accessibleName == null ? getName() : accessibleName; }
if (isLightweight())
if (isLightweight() && !e.isConsumed())
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE && !ignoreFocus) processEvent(e);
void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ...
case MouseEvent.MOUSE_WHEEL: return (mouseWheelListener != null || (eventMask & AWTEvent.MOUSE_WHEEL_EVENT_MASK) != 0);
boolean eventTypeEnabled (int type) { if (type > AWTEvent.RESERVED_ID_MAX) return true; switch (type) { case ComponentEvent.COMPONENT_HIDDEN: case ComponentEvent.COMPONENT_MOVED: case ComponentEvent.COMPONENT_RESIZED: case ComponentEvent.COMPONENT_SHOWN: return (componentLi...
e.consume();
protected void processMouseEvent(MouseEvent e) { if (mouseListener == null) return; switch (e.id) { case MouseEvent.MOUSE_CLICKED: mouseListener.mouseClicked(e); break; case MouseEvent.MOUSE_ENTERED: mouseListener.mouseEntered(e); break; case MouseEvent.MOUSE_EXITED: mo...
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass)
protected SoundbankResource(Soundbank soundbank, String name, Class dataClass)
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
this.soundBank = soundBank;
this.soundbank = soundbank;
protected SoundbankResource(Soundbank soundBank, String name, Class dataClass) { this.soundBank = soundBank; this.name = name; this.dataClass = dataClass; }
EventQueue.invokeLater(new Runnable() { public void run() { } });
public void run() { }
EventQueue.invokeLater(new Runnable() { public void run() { } });
if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show();
public void setSelectedIndex(int index) { checkIndex(index, -1, tabs.size()); if (index != getSelectedIndex()) { if (getSelectedIndex() != -1 && getSelectedComponent() != null) getSelectedComponent().hide(); if (index != -1 && getComponentAt(index) != null) getComponentAt(index).show(); model.setSelec...
actions.addElement(listener);
listenerList.add (ActionListener.class, listener);
public void addActionListener(ActionListener listener) { actions.addElement(listener); }
void fireActionPerformed()
protected void fireActionPerformed (ActionEvent event)
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
for (int i=0;i<actions.size();i++)
ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++)
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer"));
listeners [i].actionPerformed (event);
void fireActionPerformed() { for (int i=0;i<actions.size();i++) { ActionListener a = (ActionListener) actions.elementAt(i); a.actionPerformed(new ActionEvent(this, ticks, "Timer")); } }
actions.removeElement(listener);
listenerList.remove (ActionListener.class, listener);
public void removeActionListener(ActionListener listener) { actions.removeElement(listener); }
horizontalTextPosition = JButton.LEFT;
horizontalTextPosition = JButton.TRAILING;
protected void init(String text, Icon icon) { super.init(text, icon); setModel(new DefaultButtonModel()); // Initializes properties for this menu item, that are different // from Abstract button properties. /* NOTE: According to java specifications paint_border should be set to false, since menu...
ImageWriterSpi spi = (ImageWriterSpi) provider;
ImageReaderSpi spi = (ImageReaderSpi) provider;
public boolean filter (Object provider) { if (provider instanceof ImageReaderSpi) { ImageWriterSpi spi = (ImageWriterSpi) provider; String[] formatNames = spi.getFormatNames(); for (int i = formatNames.length - 1; i >= 0; --i) if (formatName.equals(formatNames[i]...
String replacementText)
EntityDeclaration declaration)
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
return new EntityReferenceImpl(location, name, null, null, null, replacementText);
return new EntityReferenceImpl(location, declaration, name);
public EntityReference createEntityReference(String name, //EntityDeclaration declaration) String replacementText) { //return new EntityReferenceImpl(location, declaration, name); return new EntityReferenceImpl(location...
handler.xmlDecl(version, encodingName, docIsStandalone, inputEncoding);
private String parseXMLDecl(boolean ignoreEncoding) throws SAXException, IOException { String version; String encodingName = null; String standalone = null; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; String inputEncoding = null; switch (this.encoding) { ...
connection.fireRequestEvent(RequestEvent.REQUEST_SENDING, this);
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
LineInputStream in = new LineInputStream(connection.getInputStream());
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
out.write(CRLF.getBytes(US_ASCII));
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
connection.fireRequestEvent(RequestEvent.REQUEST_SENT, this);
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
response = readResponse(in);
while(true) { response = readResponse(connection.getInputStream());
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
else if (sc == 100 && expectingContinue)
else if (sc == 100) { if (expectingContinue)
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
else { continue; } } break; }
public Response dispatch() throws IOException { if (dispatched) { throw new ProtocolException("request already dispatched"); } final String CRLF = "\r\n"; final String HEADER_SEP = ": "; final String US_ASCII = "US-ASCII"; final String version = connection.getVersion(); Response...
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
String getNonceCount(String nonce) { int nc = connection.getNonceCount(nonce); String hex = Integer.toHexString(nc); StringBuffer buf = new StringBuffer(); for (int i = 8 - hex.length(); i > 0; i--) { buf.append('0'); } buf.append(hex); return buf.toString(); }
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
void handleSetCookie(String text) { CookieManager cookieManager = connection.getCookieManager(); if (cookieManager == null) { return; } String name = null; String value = null; String comment = null; String domain = connection.getHostName(); String path = this.path; int lsi =...
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
Properties parseAuthParams(String text) { int len = text.length(); String key = null; StringBuffer buf = new StringBuffer(); Properties ret = new Properties(); boolean inQuote = false; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '"') { in...
Response readResponse(LineInputStream in)
Response readResponse(InputStream in)
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
line = in.readLine();
LineInputStream lis = new LineInputStream(in); line = lis.readLine();
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
responseHeaders.parse(in);
responseHeaders.parse(lis);
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
int codeClass = code / 100; Response ret = new Response(majorVersion, minorVersion, code, codeClass, message, responseHeaders);
InputStream body = null;
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
boolean notify = (responseBodyReader != null); if (notify) { if (!responseBodyReader.accept(this, ret)) { notify = false; } } readResponseBody(ret, in, notify);
body = createResponseBodyStream(responseHeaders, majorVersion, minorVersion, in);
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
Response ret = new Response(majorVersion, minorVersion, code, message, responseHeaders, body);
Response readResponse(LineInputStream in) throws IOException { String line; int len; // Read response status line line = in.readLine(); if (line == null) { throw new ProtocolException("Peer closed connection"); } if (!line.startsWith("HTTP/")) { throw new Protoco...
map.put((KeyStroke)e.getNewValue(), "doClick");
KeyStroke accelerator = (KeyStroke) e.getNewValue(); if (accelerator != null) map.put(accelerator, "doClick");
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName() == "accelerator") { InputMap map = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (map != null) map.remove((KeyStroke)e.getOldValue()); else map ...
focusedWindowMap.put(menuItem.getAccelerator(), "doClick");
KeyStroke accelerator = menuItem.getAccelerator(); if (accelerator != null) focusedWindowMap.put(accelerator, "doClick");
protected void installKeyboardActions() { InputMap focusedWindowMap = SwingUtilities.getUIInputMap(menuItem, JComponent.WHEN_IN_FOCUSED_WINDOW); if (focusedWindowMap == null) focusedWindowMap = new ComponentInputMapUIResource(menuItem); focusedWindowMap.put(menuItem.getAccelerator(), "doClick"); Swi...
IfNode(TemplateNode children, TemplateNode next, Expr test)
IfNode(Expr test)
IfNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; }
super(children, next);
IfNode(TemplateNode children, TemplateNode next, Expr test) { super(children, next); this.test = test; }
return new IfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet));
TemplateNode ret = new IfNode(test.clone(stylesheet)); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { return new IfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), test.clone(stylesheet)); }
href = systemId;
href = base;
boolean includeResource(String href, String parse, String xpointer, String encoding, String accept, String acceptLanguage) { included = false; try { if (xpointer != null) throw new XMLStreamException("xpointer attribute not yet supported");...
href = XMLParser.absolutize(systemId, href);
href = XMLParser.absolutize(base, href);
boolean includeResource(String href, String parse, String xpointer, String encoding, String accept, String acceptLanguage) { included = false; try { if (xpointer != null) throw new XMLStreamException("xpointer attribute not yet supported");...
FloatSeqHolder h = new FloatSeqHolder(); h._read(input); return h.value;
float[] value = new float[ input.read_long() ]; input.read_float_array(value, 0, value.length); return value;
public static float[] read(InputStream input) { FloatSeqHolder h = new FloatSeqHolder(); h._read(input); return h.value; }
FloatSeqHolder h = new FloatSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_float_array(value, 0, value.length);
public static void write(OutputStream output, float[] value) { FloatSeqHolder h = new FloatSeqHolder(value); h._write(output); }
throw new DomEx(DOMException.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
public DomLSParser(short mode, String schemaType) throws DOMException { switch (mode) { case DOMImplementationLS.MODE_ASYNCHRONOUS: async = true; break; case DOMImplementationLS.MODE_SYNCHRONOUS: async = false; break; default: throw new DomEx(DOMException....
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private Document doParse(LSInput input) throws DOMException, LSException { // create event sink if (eventSink != null) { throw new LSException(LSException.PARSE_ERR, "parse in progress"); } InputSource source = getInputSource(input); eventSink = (filter == null) ? new SAXEventSink() :...
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private InputSource getInputSource(LSInput input) throws LSException { InputSource source = null; String systemId = input.getSystemId(); InputStream in = input.getByteStream(); if (in != null) { source = new InputSource(in); source.setSystemId(systemId); } if (source == null...
throw new DomEx(DomEx.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
public Object getParameter(String name) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { return coalescing ? Boolean.FALSE : Boolean.TRUE; } else if ("comments".equals(name)) { return ignoreComments ? Boolean.FALSE : Boolean.TRUE; } ...
throw new DomLSEx(LSException.PARSE_ERR, e);
throw new DomLSException(LSException.PARSE_ERR, e);
private XMLReader getXMLReader() throws LSException { if (reader == null) { factory.setNamespaceAware(namespaceAware); factory.setValidating(validating); factory.setXIncludeAware(xIncludeAware); try { SAXParser parser = factory.newSAXParser(); rea...
throw new DomEx(DomEx.NOT_SUPPORTED_ERR);
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR);
public void setParameter(String name, Object value) throws DOMException { name = name.toLowerCase(); if ("cdata-sections".equals(name)) { coalescing = !((Boolean) value).booleanValue(); } else if ("comments".equals(name)) { ignoreComments = !((Boolean) value).booleanValue(); ...
boolean complete = target.prepareImage(e.image, e); if (complete)
if (target.prepareImage(e.image, e))
public int statusAll(boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPLETE; else e.status = LOADING; } ...
int flags = target.checkImage(e.image, e); if ((flags & ImageObserver.ABORT) != 0) e.status = ABORTED; else if ((flags & ImageObserver.ERROR) != 0) e.status = ERRORED; else if ((flags & ImageObserver.ALLBITS) != 0) e.status = COMPLETE; }
public int statusAll(boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPLETE; else e.status = LOADING; } ...
boolean complete = target.prepareImage(e.image, e); if (complete)
if (target.prepareImage(e.image, e))
public int statusID(int id, boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (e.id == id) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPL...
int flags = target.checkImage(e.image, e); if ((flags & ImageObserver.ABORT) != 0) e.status = ABORTED; else if ((flags & ImageObserver.ERROR) != 0) e.status = ERRORED; else if ((flags & ImageObserver.ALLBITS) != 0) e.status = COMPLETE; }
public int statusID(int id, boolean load) { int result = 0; MediaEntry e = head; while (e != null) { if (e.id == id) { if (load && e.status == 0) { boolean complete = target.prepareImage(e.image, e); if (complete) e.status = COMPL...
public VmType getType() {
public VmType<?> getType() {
public VmType getType() { return type; }
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);
throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);
public void setNodeValue(String value) { if (readonly) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (value == null) { value = ""; } String oldValue = getNodeValue(); while (last != null) { removeChild(last); } // don't create a new node ...
throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR);
throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR);
public final void setOwnerElement(Element e) { if (parent != null) { throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR); } if (!(e instanceof DomElement)) { throw new DomEx(DomEx.WRONG_DOCUMENT_ERR); } parent = (DomElement) e; depth = parent.depth + 1; }
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR);
throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR);
public final void setOwnerElement(Element e) { if (parent != null) { throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR); } if (!(e instanceof DomElement)) { throw new DomEx(DomEx.WRONG_DOCUMENT_ERR); } parent = (DomElement) e; depth = parent.depth + 1; }
public Box(int a)
public Box(int axis)
public Box(int a) { setLayout(new BoxLayout(this, a)); }
setLayout(new BoxLayout(this, a));
setLayout(new BoxLayout(this, axis));
public Box(int a) { setLayout(new BoxLayout(this, a)); }
Object val = (arg == null) ? null : arg.evaluate(context, pos, len);
Object val = (arg == null) ? Collections.singleton(context) : arg.evaluate(context, pos, len);
public Object evaluate(Node context, int pos, int len) { Object val = (arg == null) ? null : arg.evaluate(context, pos, len); return _namespace_uri(context, (Collection) val); }
public String getUIClassID() { return "JToggleButton"; }
public String getUIClassID() { return "ToggleButtonUI"; }
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JToggleButton"; }
return null;
if (accessibleContext == null) accessibleContext = new AccessibleJButton(); return accessibleContext;
public AccessibleContext getAccessibleContext() { // Gets the AccessibleContext associated with this JButton. return null; }
return "JButton";
String superParam = super.paramString(); StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString();
protected String paramString() { return "JButton"; }
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement");
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note tha...