rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public void addChangeListener(ChangeListener l) { changes.addElement(l); }
public void addChangeListener(ChangeListener listener) { listenerList.add(ChangeListener.class, listener); }
public void addChangeListener(ChangeListener l) { changes.addElement(l); }
public void removeChangeListener(ChangeListener l) { changes.removeElement(l); }
public void removeChangeListener(ChangeListener listener) { listenerList.remove(ChangeListener.class, listener); }
public void removeChangeListener(ChangeListener l) { changes.removeElement(l); }
{
private void repaint() { if (parent != null) { parent.repaint(); } }
}
private void repaint() { if (parent != null) { parent.repaint(); } }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return CopiesSupported.class; }
public final String getName()
public String getName()
public final String getName() { return "copies-supported"; }
}
public void mouseDragged(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (slider.getValueIsAdjusting()) { int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX) - offset; else value = valueForYPosition(curr...
}
public void mousePressed(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (slider.getOrientation() == JSlider.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (slider.getSnapToTicks()) value = fi...
}
public void mouseReleased(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (slider.getValueIsAdjusting()) { slider.setValueIsAdjusting(false); if (slider.getSnapToTicks()) slider.setValue(findClosestTick(slider.getValue())); } if (scrollTimer != nul...
if (count == Short.MAX_VALUE) {
if (nextCount == Short.MAX_VALUE) {
public UID() { synchronized (lock) { if (count == Short.MAX_VALUE) { long newtime; for (;;) { newtime = System.currentTimeMillis(); if (newtime - baseTime > 1000) { break; } try { Thread.sleep(1000); } catch (InterruptedException _) { } } baseTime = newtime; nextCount = Short.MIN...
public void doPass2(BootableHashMap liveVariables) {
public void doPass2() {
public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } }
if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); }
public void doPass2(BootableHashMap liveVariables) { refs[0] = refs[0].simplify(); if (refs[0] instanceof Variable) { Variable v = (Variable) refs[0]; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } }
setDeadCode(true);
public Operand propagate(Variable operand) { Quad quad = foldConstants(); if (quad instanceof ConstantRefAssignQuad) { setDeadCode(true); ConstantRefAssignQuad cop = (ConstantRefAssignQuad) quad; return cop.getRHS(); } return operand; }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return OrientationRequested.class; }
public final String getName()
public String getName()
public final String getName() { return "orientation-requested"; }
this.raf = new RandomAccessFile(name, "r");
this.raf = openFile(name,null);
public ZipFile(String name) throws ZipException, IOException { this.raf = new RandomAccessFile(name, "r"); this.name = name; checkZipFile(); }
ZipEntry(ZipEntry e, String name)
public ZipEntry(String name)
ZipEntry(ZipEntry e, String name) { this.name = name; known = e.known; size = e.size; compressedSize = e.compressedSize; crc = e.crc; dostime = e.dostime; method = e.method; extra = e.extra; comment = e.comment; }
this.name = name; known = e.known; size = e.size; compressedSize = e.compressedSize; crc = e.crc; dostime = e.dostime; method = e.method; extra = e.extra; comment = e.comment;
int length = name.length(); if (length > 65535) throw new IllegalArgumentException("name length is " + length); this.name = name;
ZipEntry(ZipEntry e, String name) { this.name = name; known = e.known; size = e.size; compressedSize = e.compressedSize; crc = e.crc; dostime = e.dostime; method = e.method; extra = e.extra; comment = e.comment; }
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = defaults.getIcon("RadioButtonMenuItem.checkIcon");
public BasicRadioButtonMenuItemUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); checkIcon = defaults.getIcon("RadioButtonMenuItem.checkIcon"); }
doClick();
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { switch (event.getID()) { case MouseEvent.MOUSE_CLICKED: doClick(); break; case MouseEvent.MOUSE_ENTERED: if (event.getSource() instanceof JMenuItem) { JMenuItem it...
if (model.isPressed() && (event.getModifiers() & InputEvent.BUTTON1_MASK) != 0) model.setArmed(true); else model.setArmed(false);
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { switch (event.getID()) { case MouseEvent.MOUSE_CLICKED: doClick(); break; case MouseEvent.MOUSE_ENTERED: if (event.getSource() instanceof JMenuItem) { JMenuItem it...
model.setArmed(false);
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { switch (event.getID()) { case MouseEvent.MOUSE_CLICKED: doClick(); break; case MouseEvent.MOUSE_ENTERED: if (event.getSource() instanceof JMenuItem) { JMenuItem it...
if (event.getSource() instanceof JMenuItem) { JMenuItem item = (JMenuItem) event.getSource(); ButtonModel model = item.getModel(); if ((event.getModifiers() & InputEvent.BUTTON1_MASK) != 0) { model.setPressed(false); model.setArmed(false); manager.clearSelectedPath(); } }
public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { switch (event.getID()) { case MouseEvent.MOUSE_CLICKED: doClick(); break; case MouseEvent.MOUSE_ENTERED: if (event.getSource() instanceof JMenuItem) { JMenuItem it...
byte b1[] = getEncoded(); byte b2[] = xe.getEncoded();
byte[] b1 = getEncoded(); byte[] b2 = xe.getEncoded();
public boolean equals(Object other) { if( other instanceof X509CRLEntry ) { try { X509CRLEntry xe = (X509CRLEntry) other; if( getEncoded().length != xe.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = xe.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) ...
return new primitiveArrayTypeCode(TCKind.tk_ulong);
return new ArrayTypeCode(TCKind.tk_ulong);
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_ulong); }
invalidate();
public void updateUI() { setUI((TabbedPaneUI) UIManager.getUI(this)); invalidate(); }
public String getToolTipText(MouseEvent event) {
public String getToolTipText() {
public String getToolTipText(MouseEvent event) { return toolTipText; }
if (disabledIcon == null && activeIcon instanceof ImageIcon) disabledIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) activeIcon).getImage()));
if (disabledIcon == null && icon instanceof ImageIcon) disabledIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) icon) .getImage()));
public Icon getDisabledIcon() { if (disabledIcon == null && activeIcon instanceof ImageIcon) disabledIcon = new ImageIcon(GrayFilter.createDisabledImage(((ImageIcon) activeIcon).getImage())); return disabledIcon; }
return (int) mnemonicKey;
return (int) displayedMnemonic;
public int getDisplayedMnemonic() { return (int) mnemonicKey; }
return underlinedChar;
return displayedMnemonicIndex;
public int getDisplayedMnemonicIndex() { return underlinedChar; }
return activeIcon;
return icon;
public Icon getIcon() { return activeIcon; }
return labelText;
return text;
public String getText() { return labelText; }
Icon currIcon = (isEnabled()) ? activeIcon : disabledIcon;
Icon currIcon = isEnabled() ? icon : disabledIcon;
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { Icon currIcon = (isEnabled()) ? activeIcon : disabledIcon; //Is this the correct way to check for image equality? if (currIcon != null && currIcon instanceof ImageIcon) return (((ImageIcon) cu...
public void setDisabledIcon(Icon disabledIcon)
public void setDisabledIcon(Icon newIcon)
public void setDisabledIcon(Icon disabledIcon) { if (disabledIcon != this.disabledIcon) { Icon oldDisabledIcon = this.disabledIcon; this.disabledIcon = disabledIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldDisabledIcon, this.disabledIcon); } }
if (disabledIcon != this.disabledIcon)
if (disabledIcon != newIcon)
public void setDisabledIcon(Icon disabledIcon) { if (disabledIcon != this.disabledIcon) { Icon oldDisabledIcon = this.disabledIcon; this.disabledIcon = disabledIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldDisabledIcon, this.disabledIcon); } }
Icon oldDisabledIcon = this.disabledIcon; this.disabledIcon = disabledIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldDisabledIcon, this.disabledIcon);
Icon oldIcon = disabledIcon; disabledIcon = newIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldIcon, newIcon);
public void setDisabledIcon(Icon disabledIcon) { if (disabledIcon != this.disabledIcon) { Icon oldDisabledIcon = this.disabledIcon; this.disabledIcon = disabledIcon; firePropertyChange(DISABLED_ICON_CHANGED_PROPERTY, oldDisabledIcon, this.disabledIcon); } }
public void setDisplayedMnemonic(int key)
public void setDisplayedMnemonic(int mnemonic)
public void setDisplayedMnemonic(int key) { setDisplayedMnemonic((char) key); }
setDisplayedMnemonic((char) key);
if (displayedMnemonic != mnemonic) { firePropertyChange(DISPLAYED_MNEMONIC_CHANGED_PROPERTY, displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.indexOf(mnemonic)); }
public void setDisplayedMnemonic(int key) { setDisplayedMnemonic((char) key); }
public void setDisplayedMnemonicIndex(int index)
public void setDisplayedMnemonicIndex(int newIndex)
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || labelText != null && index >= labelText.length()) throw new IllegalArgumentException(); if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -...
if (index < -1 || labelText != null && index >= labelText.length())
if (newIndex < -1 || (text != null && newIndex >= text.length()))
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || labelText != null && index >= labelText.length()) throw new IllegalArgumentException(); if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -...
if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -1;
if (text == null || text.charAt(newIndex) != displayedMnemonic) newIndex = -1;
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || labelText != null && index >= labelText.length()) throw new IllegalArgumentException(); if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -...
if (index != underlinedChar)
if (newIndex != displayedMnemonicIndex)
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || labelText != null && index >= labelText.length()) throw new IllegalArgumentException(); if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -...
int oldIndex = underlinedChar; underlinedChar = index;
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || labelText != null && index >= labelText.length()) throw new IllegalArgumentException(); if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -...
oldIndex, underlinedChar);
displayedMnemonicIndex, newIndex); displayedMnemonicIndex = newIndex;
public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || labelText != null && index >= labelText.length()) throw new IllegalArgumentException(); if (labelText == null || labelText.charAt(index) != mnemonicKey) index = -...
public void setIcon(Icon icon)
public void setIcon(Icon newIcon)
public void setIcon(Icon icon) { if (icon != activeIcon) { Icon oldIcon = activeIcon; activeIcon = icon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, activeIcon); } }
if (icon != activeIcon)
if (icon != newIcon)
public void setIcon(Icon icon) { if (icon != activeIcon) { Icon oldIcon = activeIcon; activeIcon = icon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, activeIcon); } }
Icon oldIcon = activeIcon; activeIcon = icon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, activeIcon);
Icon oldIcon = icon; icon = newIcon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, newIcon);
public void setIcon(Icon icon) { if (icon != activeIcon) { Icon oldIcon = activeIcon; activeIcon = icon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, activeIcon); } }
public void setIconTextGap(int iconTextGap)
public void setIconTextGap(int newGap)
public void setIconTextGap(int iconTextGap) { if (iconTextGap != this.iconTextGap) { int oldIconTextGap = this.iconTextGap; this.iconTextGap = iconTextGap; firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, oldIconTextGap, iconTextGap); } }
if (iconTextGap != this.iconTextGap)
if (iconTextGap != newGap)
public void setIconTextGap(int iconTextGap) { if (iconTextGap != this.iconTextGap) { int oldIconTextGap = this.iconTextGap; this.iconTextGap = iconTextGap; firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, oldIconTextGap, iconTextGap); } }
int oldIconTextGap = this.iconTextGap; this.iconTextGap = iconTextGap; firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, oldIconTextGap, iconTextGap);
firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, iconTextGap, newGap); iconTextGap = newGap;
public void setIconTextGap(int iconTextGap) { if (iconTextGap != this.iconTextGap) { int oldIconTextGap = this.iconTextGap; this.iconTextGap = iconTextGap; firePropertyChange(ICON_TEXT_GAP_CHANGED_PROPERTY, oldIconTextGap, iconTextGap); } }
Component oldLabelFor = labelFor;
firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, labelFor, c);
public void setLabelFor(Component c) { if (c != labelFor) { Component oldLabelFor = labelFor; labelFor = c; firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, oldLabelFor, labelFor); } }
firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, oldLabelFor, labelFor);
public void setLabelFor(Component c) { if (c != labelFor) { Component oldLabelFor = labelFor; labelFor = c; firePropertyChange(LABEL_FOR_CHANGED_PROPERTY, oldLabelFor, labelFor); } }
public void setText(String text)
public void setText(String newText)
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText != null && labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
if (text != labelText)
if (text != newText)
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText != null && labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText != null && labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1);
String oldText = text; text = newText; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, newText); if (text != null && text.length() <= displayedMnemonicIndex) setDisplayedMnemonicIndex(text.length() - 1);
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText != null && labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
m_parameter_buffer.setCodeSet(cxCodeSet.negotiate(ior.CodeSets));
m_parameter_buffer.setCodeSet(cxCodeSet.negotiate(ior.Internet.CodeSets));
public streamRequest getParameterStream() { m_parameter_buffer = new streamRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setVersion(ior.Internet.version); m_parameter_buffer.setCodeSet(cxCodeSet.negotiate(ior.CodeSets)); m_parameter_buffer.setOrb(orb); m_parameter_buffer.setBigEn...
if (ior.Internet.version.until_inclusive(1, 1)) { cdrBufOutput measure = new cdrBufOutput(); measure.setOffset(12); if (m_rqh == null) m_rqh = new gnu.CORBA.GIOP.v1_0.RequestHeader(); m_rqh.operation = m_operation; m_rqh.object_key = ior.key; m_rqh.write(measure); m_parameter_buffer.setOffset(12 + measure.buffer.size()...
public streamRequest getParameterStream() { m_parameter_buffer = new streamRequest(); m_parameter_buffer.request = this; m_parameter_buffer.setVersion(ior.Internet.version); m_parameter_buffer.setCodeSet(cxCodeSet.negotiate(ior.CodeSets)); m_parameter_buffer.setOrb(orb); m_parameter_buffer.setBigEn...
* The response is ready after it is received. * FIXME implement context checks and any other functionality, * if required.
* The response is ready after it is received. FIXME implement context * checks and any other functionality, if required.
public void get_response() throws org.omg.CORBA.WrongTransaction { /** * The response is ready after it is received. * FIXME implement context checks and any other functionality, * if required. */ }
break Forwardings; } catch (ForwardRequest e) { try { ObjectImpl impl = (ObjectImpl) e.forward; Simple_delegate delegate = (Simple_delegate) impl._get_delegate(); ior = delegate.getIor(); } catch (Exception ex) { BAD_PARAM bad = new BAD_PARAM("Unsupported forwarding target"); bad.initCause(ex); throw bad; } } }
public synchronized void invoke() throws BAD_INV_ORDER { waitWhileBusy(); complete = false; running = true; if (ior == null) throw new BAD_INV_ORDER("Set IOR property first"); try { p_invoke(); } finally { running = false; complete ...
private void p_invoke() throws SystemException
private void p_invoke() throws SystemException, ForwardRequest
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
ReplyHeader rh = response.header.create_reply_header();
if (m_rph == null) m_rph = response.header.create_reply_header();
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
rh.read(input);
m_rph.read(input);
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
switch (rh.reply_status)
switch (m_rph.reply_status)
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
SystemException exception = ObjectCreator.readSystemException(input);
m_sys_ex = ObjectCreator.readSystemException(input); m_environment.exception(m_sys_ex);
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
m_environment.exception(exception);
if (m_interceptor != null) m_interceptor.receive_exception(m_info);
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
throw exception;
throw m_sys_ex;
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
throw new MARSHAL("Unknow reply status", 8100 + rh.reply_status,
throw new MARSHAL("Unknow reply status", 8100 + m_rph.reply_status,
private void p_invoke() throws SystemException { binaryReply response = submit(); ReplyHeader rh = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); rh.read(input); // The stream must be aligned sinve v1.2, but only once. boolean ...
public synchronized binaryReply submit()
public synchronized binaryReply submit() throws ForwardRequest
public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.ve...
rh.object_key = ior.key; rh.operation = m_operation;
m_rqh = rh; if (m_interceptor != null) m_interceptor.send_request(m_info);
public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.ve...
request_part.setCodeSet(cxCodeSet.negotiate(ior.CodeSets));
request_part.setCodeSet(cxCodeSet.negotiate(ior.Internet.CodeSets));
public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.ve...
list = new corbaArrayList();
list = new CorbaList();
public gnuNVList() { list = new corbaArrayList(); }
int[] supported = CharSets_OSF.getSupportedCharSets(); CodeSets.narrow.native_set = CharSets_OSF.NATIVE_CHARACTER; CodeSets.narrow.conversion = supported; CodeSets.wide.native_set = CharSets_OSF.NATIVE_WIDE_CHARACTER; CodeSets.wide.conversion = supported;
public IOR() { int[] supported = CharSets_OSF.getSupportedCharSets(); CodeSets.narrow.native_set = CharSets_OSF.NATIVE_CHARACTER; CodeSets.narrow.conversion = supported; CodeSets.wide.native_set = CharSets_OSF.NATIVE_WIDE_CHARACTER; CodeSets.wide.conversion = supported; }
int lk = profile.read_long(); key = new byte[ lk ]; profile.read(key);
key = profile.read_sequence();
public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); if (n_profiles == 0) { Id = null; Internet = null; return; } for (int i = 0; i < n_profiles; i++) { int tag = c.re...
CodeSets.read(profile);
Internet.CodeSets.read(profile); } else { TaggedComponent pc = new TaggedComponent(); pc.tag = ctag; pc.component_data = profile.read_sequence(); Internet.components.add(pc);
public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); if (n_profiles == 0) { Id = null; Internet = null; return; } for (int i = 0; i < n_profiles; i++) { int tag = c.re...
else { TaggedProfile p = new TaggedProfile(); p.tag = tag; p.profile_data = profile.buffer.getBuffer(); profiles.add(p); }
public void _read_no_endian(cdrInput c) throws IOException, BAD_PARAM { Id = c.read_string(); int n_profiles = c.read_long(); if (n_profiles == 0) { Id = null; Internet = null; return; } for (int i = 0; i < n_profiles; i++) { int tag = c.re...
if (s != null && s.isClosed())
if (s == null) return null; else if (s.isClosed())
public static Socket get_socket(Object key) { Socket s = (Socket) sockets.get(key); if (s != null && s.isClosed()) { sockets.remove(key); return null; } else { sockets.remove(key); return s; } }
try { s.setSoTimeout(60*1000); } catch (SocketException e) { s = null; }
public static Socket get_socket(Object key) { Socket s = (Socket) sockets.get(key); if (s != null && s.isClosed()) { sockets.remove(key); return null; } else { sockets.remove(key); return s; } }
public void setKeepAlive(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected");
public void setKeepAlive(boolean on) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public void setKeepAlive(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_KEEPALIVE, new Boolean(on)); }
impl.setOption(SocketOptions.SO_KEEPALIVE, new Boolean(on));
getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on));
public void setKeepAlive(boolean on) throws SocketException { if (impl == null) throw new SocketException("Not connected"); impl.setOption(SocketOptions.SO_KEEPALIVE, new Boolean(on)); }
public OutputStream getOutputStream() throws IOException { if (impl != null) return impl.getOutputStream();
public OutputStream getOutputStream() throws IOException { if (isClosed()) throw new SocketException("socket is closed");
public OutputStream getOutputStream() throws IOException { if (impl != null) return impl.getOutputStream(); throw new IOException("Not connected"); }
throw new IOException("Not connected");
if (! isConnected()) throw new IOException("not connected"); return getImpl().getOutputStream();
public OutputStream getOutputStream() throws IOException { if (impl != null) return impl.getOutputStream(); throw new IOException("Not connected"); }
public boolean isClosed() { return closed;
public boolean isClosed() { return impl == null;
public boolean isClosed() { return closed; }
public InputStream getInputStream() throws IOException { if (impl != null) return (impl.getInputStream());
public InputStream getInputStream() throws IOException { if (isClosed()) throw new SocketException("socket is closed");
public InputStream getInputStream() throws IOException { if (impl != null) return (impl.getInputStream()); throw new IOException("Not connected"); }
throw new IOException("Not connected");
if (! isConnected()) throw new IOException("not connected"); return getImpl().getInputStream();
public InputStream getInputStream() throws IOException { if (impl != null) return (impl.getInputStream()); throw new IOException("Not connected"); }
public synchronized void setSoTimeout(int timeout) throws SocketException { if (impl == null) throw new SocketException("Not connected");
public synchronized void setSoTimeout(int timeout) throws SocketException { if (isClosed()) throw new SocketException("socket is closed");
public synchronized void setSoTimeout(int timeout) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
getImpl().setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout));
public synchronized void setSoTimeout(int timeout) throws SocketException { if (impl == null) throw new SocketException("Not connected"); if (timeout < 0) throw new IllegalArgumentException("SO_TIMEOUT value must be >= 0"); impl.setOption(SocketOptions.SO_TIMEOUT, new Integer(timeout)); }
lhs.setAssignQuad(this);
public void setLHS(Variable lhs) { this.lhs = lhs; }
if (next != null)
public void focusNextComponent (Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component next = policy.getComponentAfter (fo...
if (previous != null)
public void focusPreviousComponent (Component comp) { Component focusComp = (comp == null) ? getGlobalFocusOwner () : comp; Container focusCycleRoot = focusComp.getFocusCycleRootAncestor (); FocusTraversalPolicy policy = focusCycleRoot.getFocusTraversalPolicy (); Component previous = policy.getComponentB...
doLayout(); repaint(); setVisible(false); show();
public void adjustDesktopSize(int width, int height) { setSize(width, height); doLayout(); repaint(); setVisible(false); show(); }
public JFrame(String title)
public JFrame()
public JFrame(String title) { super(title); frameInit(); }
super(title);
super("JFrame");
public JFrame(String title) { super(title); frameInit(); }
public JDesktopPane() { }
public JDesktopPane() { setLayout(null); updateUI(); }
public JDesktopPane() { // TODO } // JDesktopPane()
boolean global = "variable".equals(name);
int type = "variable".equals(name) ? Bindings.VARIABLE : Bindings.PARAM;
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
String paramName = getRequiredAttribute(attrs, "name", node);
QName paramName = getQName(getRequiredAttribute(attrs, "name", node));
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
param = new ParameterNode(paramName, expr, global);
param = new ParameterNode(paramName, expr, type);
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
param = new ParameterNode(paramName, null, global);
param = new ParameterNode(paramName, null, type);
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
bindings.set(paramName, content, global);
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0))
String localName = name, uri = null, prefix = null; int ci = name.indexOf(':'); if (ci != -1)
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...
String localName = qName.getLocalPart(); qName = new QName(uri, localName, prefix);
final QName getQName(String name) { QName qName = QName.valueOf(name); String prefix = qName.getPrefix(); String uri = qName.getNamespaceURI(); if (prefix != null && (uri == null || uri.length() == 0)) { uri = getNamespaceURI(prefix); String localName = qName.getLocalPart(); qNa...