rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public AssertionError(Object msg) | public AssertionError() | public AssertionError(Object msg) { super("" + msg); if (msg instanceof Throwable) initCause((Throwable) msg); } |
super("" + msg); if (msg instanceof Throwable) initCause((Throwable) msg); | public AssertionError(Object msg) { super("" + msg); if (msg instanceof Throwable) initCause((Throwable) msg); } | |
bad.minor = Minor.Any; | public static NameComponent extract(Any a) { try { return ((NameComponentHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Name component expected"); bad.initCause(ex); throw bad; } } | |
int y = rect.y; | int y = rect.y + metrics.getAscent(); | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.ge... |
public Word sub (Word w2) { | public Word sub (int w2) { | public Word sub (Word w2) { return null; } |
toXMLWriter(outputWriter, "", false, null, null); | basicXMLWriter(outputWriter, "", false, null, null); | public String toXMLString () { // hurm. Cant figure out how to use BufferedWriter here. fooey. Writer outputWriter = (Writer) new StringWriter(); try { toXMLWriter(outputWriter, "", false, null, null); } catch (java.io.IOException e) { // weird. Out of memorY? Log.errorln("Cant... |
public ShortSeqHolder(short[] initial_value) | public ShortSeqHolder() | public ShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); } |
value = initial_value; typecode.setLength(value.length); | public ShortSeqHolder(short[] initial_value) { value = initial_value; typecode.setLength(value.length); } | |
public JNodeBufferedImage(int w, int h, int type) { super(w, h, type); | public JNodeBufferedImage(ColorModel colormodel, WritableRaster writableraster, boolean premultiplied, Hashtable properties) { super(colormodel, writableraster, premultiplied, properties); | public JNodeBufferedImage(int w, int h, int type) { super(w, h, type); } |
public String getValue(Name name) | public String getValue(String name) | public String getValue(Name name) { return (String) get(name); } |
return (String) get(name); | return (String) get(new Name(name)); | public String getValue(Name name) { return (String) get(name); } |
EditorKit e = null; String className = (String) registerMap.get(type); if (className != null) | EditorKit e = (EditorKit) editorKits.get(type); if (e == null) | public static EditorKit createEditorKitForContentType(String type) { // TODO: Have to handle the case where a ClassLoader was specified // when the EditorKit was registered EditorKit e = null; String className = (String) registerMap.get(type); if (className != null) { try { ... |
e = (EditorKit) Class.forName(className).newInstance(); | e = (EditorKit) loader.loadClass(className).newInstance(); | public static EditorKit createEditorKitForContentType(String type) { // TODO: Have to handle the case where a ClassLoader was specified // when the EditorKit was registered EditorKit e = null; String className = (String) registerMap.get(type); if (className != null) { try { ... |
} if (e != null) editorKits.put(type, e); | public static EditorKit createEditorKitForContentType(String type) { // TODO: Have to handle the case where a ClassLoader was specified // when the EditorKit was registered EditorKit e = null; String className = (String) registerMap.get(type); if (className != null) { try { ... | |
return (String) registerMap.get(type); | EditorKitMapping m = (EditorKitMapping) registerMap.get(type); String kitName = m != null ? m.className : null; return kitName; | public static String getEditorKitClassNameForContentType(String type) { return (String) registerMap.get(type); } |
e = new PlainEditorKit(); | e = createDefaultEditorKit(); | public EditorKit getEditorKitForContentType(String type) { // First check if an EditorKit has been explicitly set. EditorKit e = (EditorKit) editorMap.get(type); // Then check to see if we can create one. if (e == null) e = createEditorKitForContentType(type); // Otherwise default to PlainEditorK... |
return page; | return loader != null ? loader.page : null; | public URL getPage() { return page; } |
if (getScrollableTracksViewportWidth()) pref.width = getUI().getMinimumSize(this).width; if (getScrollableTracksViewportHeight()) pref.height = getUI().getMinimumSize(this).height; | Container parent = getParent(); if (parent instanceof JViewport) { JViewport vp = (JViewport) getParent(); TextUI ui = getUI(); Dimension min = null; if (! getScrollableTracksViewportWidth()) { min = ui.getMinimumSize(this); int vpWidth = vp.getWidth(); if (vpWidth != 0 && vpWidth < min.width) pref.width = min.width; }... | public Dimension getPreferredSize() { Dimension pref = super.getPreferredSize(); if (getScrollableTracksViewportWidth()) pref.width = getUI().getMinimumSize(this).width; if (getScrollableTracksViewportHeight()) pref.height = getUI().getMinimumSize(this).height; return pref; } |
&& parent.getHeight() >= getUI().getMinimumSize(this).height && parent.getHeight() <= getUI().getMaximumSize(this).height; | && height >= ui.getMinimumSize(this).height && height <= ui.getMaximumSize(this).height; | public boolean getScrollableTracksViewportHeight() { // Tests show that this returns true when the parent is a JViewport // and has a height > minimum UI height. Container parent = getParent(); return parent instanceof JViewport && parent.getHeight() >= getUI().getMinimumSize(this).height ... |
return page.openStream(); | URLConnection conn = page.openConnection(); String type = conn.getContentType(); if (type != null) setContentType(type); InputStream stream = conn.getInputStream(); return new BufferedInputStream(stream); | protected InputStream getStream(URL page) throws IOException { return page.openStream(); } |
registerMap = new HashMap(); registerEditorKitForContentType("application/rtf", "javax.swing.text.rtf.RTFEditorKit"); registerEditorKitForContentType("text/plain", "javax.swing.JEditorPane$PlainEditorKit"); registerEditorKitForContentType("text/html", "javax.swing.text.html.HTMLEditorKit"); registerEditorKitForContentT... | void init() { editorMap = new HashMap(); registerMap = new HashMap(); registerEditorKitForContentType("application/rtf", "javax.swing.text.rtf.RTFEditorKit"); registerEditorKitForContentType("text/plain", "javax.swing.JEditorPane$Plain... | |
Document doc = (Document) desc; | HTMLDocument doc = (HTMLDocument) desc; setDocument(doc); | public void read(InputStream in, Object desc) throws IOException { EditorKit kit = getEditorKit(); if (kit instanceof HTMLEditorKit && desc instanceof HTMLDocument) { Document doc = (Document) desc; try { kit.read(in, doc, 0); } catch (BadLocationException... |
kit.read(in, doc, 0); | InputStreamReader reader = new InputStreamReader(in); kit.read(reader, doc, 0); | public void read(InputStream in, Object desc) throws IOException { EditorKit kit = getEditorKit(); if (kit instanceof HTMLEditorKit && desc instanceof HTMLDocument) { Document doc = (Document) desc; try { kit.read(in, doc, 0); } catch (BadLocationException... |
registerMap.put(type, classname); | registerEditorKitForContentType(type, classname, Thread.currentThread().getContextClassLoader()); | public static void registerEditorKitForContentType(String type, String classname) { registerMap.put(type, classname); } |
int paramIndex = type.indexOf(';'); if (paramIndex > -1) { type = type.substring(0, paramIndex).trim(); } | public final void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit); } | |
pool.request(reg); | assertCondition(pool.request(reg), "Request of register failed: ", reg); | static final void requestRegister(EmitterContext eContext, X86Register reg) { final X86RegisterPool pool = eContext.getGPRPool(); if (!pool.isFree(reg)) { final Item i = (Item) pool.getOwner(reg); i.spill(eContext, reg); assertCondition(pool.isFree(reg), "register is not free after spill"); } pool.reques... |
public IllegalModeException(String s) { super(s); | public IllegalModeException() { super(); | public IllegalModeException(String s) { super(s); } |
checkIsConstructed(derPKI, "Wrong PrivateKeyInfo field"); | DerUtil.checkIsConstructed(derPKI, "Wrong PrivateKeyInfo field"); | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr... |
checkIsConstructed(derAlgoritmID, "Wrong AlgorithmIdentifier field"); | DerUtil.checkIsConstructed(derAlgoritmID, "Wrong AlgorithmIdentifier field"); | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr... |
checkIsConstructed(derParams, "Wrong DSS Parameters field"); | DerUtil.checkIsConstructed(derParams, "Wrong DSS Parameters field"); | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr... |
checkIsBigInteger(val, "Wrong P field"); | DerUtil.checkIsBigInteger(val, "Wrong P field"); | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr... |
checkIsBigInteger(val, "Wrong Q field"); | DerUtil.checkIsBigInteger(val, "Wrong Q field"); | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr... |
checkIsBigInteger(val, "Wrong G field"); | DerUtil.checkIsBigInteger(val, "Wrong G field"); | public PrivateKey decodePrivateKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, p, q, g, x; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); checkIsConstructed(derPKI, "Wrong Pr... |
public int compareTo(BigInteger val) | private static int compareTo(BigInteger x, BigInteger y) | public int compareTo(BigInteger val) { return compareTo(this, val); } |
return compareTo(this, val); | if (x.words == null && y.words == null) return x.ival < y.ival ? -1 : x.ival > y.ival ? 1 : 0; boolean x_negative = x.isNegative(); boolean y_negative = y.isNegative(); if (x_negative != y_negative) return x_negative ? -1 : 1; int x_len = x.words == null ? 1 : x.ival; int y_len = y.words == null ? 1 : y.ival; if (x_len... | public int compareTo(BigInteger val) { return compareTo(this, val); } |
public BigInteger(int signum, byte[] magnitude) | private BigInteger() | public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... |
if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; } words = byteArrayToIntArray(magnitude, 0); BigInteger result = make(words, words... | public BigInteger(int signum, byte[] magnitude) { if (magnitude == null || signum > 1 || signum < -1) throw new NumberFormatException(); if (signum == 0) { int i; for (i = magnitude.length - 1; i >= 0 && magnitude[i] == 0; --i) ; if (i >= 0) throw new NumberFormatException(); return; ... | |
public DERValue(int tag, Object value) | public DERValue(int tag, int length, Object value, byte[] encoded) | public DERValue(int tag, Object value) { this(tag, 0, value, null); } |
this(tag, 0, value, null); | tagClass = tag & 0xC0; this.tag = tag & 0x1F; constructed = (tag & CONSTRUCTED) == CONSTRUCTED; this.length = length; this.value = value; if (encoded != null) this.encoded = (byte[]) encoded.clone(); | public DERValue(int tag, Object value) { this(tag, 0, value, null); } |
if (DER.CONSTRUCTED_VALUE.equals (object.getValue ())) { out.write (object.getEncoded ()); return object.getLength (); } | public static int write(OutputStream out, DERValue object) throws IOException { out.write(object.getExternalTag()); Object value = object.getValue(); if (value == null) { writeLength(out, 0); return 0; } if (value instanceof Boolean) return writeBoolean(out, (Boolean) val... | |
public LongLongSeqHolder(long[] initial_value) | public LongLongSeqHolder() | public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); } |
value = initial_value; typecode.setLength(value.length); | public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); } | |
try { FileOutputStream out = new FileOutputStream(fileName); props.store(out,"------ Defaults --------"); } catch (FileNotFoundException fnfe) {} catch (IOException ioe) {} | changes.saveSessionProps(); | private void saveProps() { DefaultMutableTreeNode root = (DefaultMutableTreeNode)tree.getModel().getRoot(); Enumeration e = root.children(); Object child; while (e.hasMoreElements()) { child = e.nextElement(); Object obj = ((DefaultMutableTreeNode)child).getUserObject(); i... |
public DefaultMutableTreeNode(Object userObject) | public DefaultMutableTreeNode() | public DefaultMutableTreeNode(Object userObject) { this(userObject, true); } |
this(userObject, true); | this(null, true); | public DefaultMutableTreeNode(Object userObject) { this(userObject, true); } |
public _PolicyStub(Delegate delegate) | public _PolicyStub() | public _PolicyStub(Delegate delegate) { _set_delegate(delegate); } |
_set_delegate(delegate); | public _PolicyStub(Delegate delegate) { _set_delegate(delegate); } | |
throw new MARSHAL(); | MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; | public static ServantActivator read(InputStream input) { throw new MARSHAL(); } |
throw new MARSHAL(); | MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; | public static void write(OutputStream output, ServantActivator value) { throw new MARSHAL(); } |
public abstract void insert_Object(org.omg.CORBA.Object x); | public abstract void insert_Object(org.omg.CORBA.Object x, TypeCode typecode); | public abstract void insert_Object(org.omg.CORBA.Object x); |
public ObjID(int num) { objNum = (long)num; space = new UID((short)0); } | public ObjID() { synchronized (lock) { objNum = next++; } space = new UID(); } | public ObjID(int num) { objNum = (long)num; space = new UID((short)0);} |
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); | UnicastServerRef() { | public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) { super(id); manager = UnicastConnectionManager.getInstance(port, ssf);} |
stub = (RemoteStub)getHelperClass(cls, "_Stub"); | Class expCls; try { expCls = findStubSkelClass(cls); } catch (Exception ex) { throw new RemoteException("can not find stubs for class: " + cls, ex); } stub = (RemoteStub)getHelperClass(expCls, "_Stub"); | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); stub = (RemoteStub)getHelperClass(cls,... |
skel = (Skeleton)getHelperClass(cls, "_Skel"); | skel = (Skeleton)getHelperClass(expCls, "_Skel"); | public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); stub = (RemoteStub)getHelperClass(cls,... |
throw new MARSHAL("IOException while writing message header"); | MARSHAL m = new MARSHAL("IOException while writing message header"); m.minor = Minor.Header; m.initCause(ex); throw m; | public void write(java.io.OutputStream out) { try { out.write(major & 0xFF); out.write(minor & 0xFF); } catch (IOException ex) { throw new MARSHAL("IOException while writing message header"); } } |
m.minor = Minor.Encapsulation; | public static void write(OutputStream output, TaggedComponent value) { output.write_long(value.tag); output.write_long(value.component_data.length); try { output.write(value.component_data); } catch (IOException e) { MARSHAL m = new MARSHAL(); m.initCause(e); th... | |
throw new MARSHAL("IOException while reading message header"); | MARSHAL m = new MARSHAL("IOException while reading message header"); m.initCause(ex); m.minor = Minor.Header; throw m; | public static Version read_version(java.io.InputStream in) { try { int major = in.read() & 0xFF; int minor = in.read() & 0xFF; return new Version(major, minor); } catch (IOException ex) { throw new MARSHAL("IOException while reading message header"); } } |
m.minor = Minor.Encapsulation; | public static TaggedComponent read(InputStream input) { TaggedComponent value = new TaggedComponent(); value.tag = input.read_long(); value.component_data = new byte[input.read_long()]; try { input.read(value.component_data); } catch (IOException e) { MARSHAL m = new MARSH... | |
int hash = (negativeSuffix.hashCode() ^ negativePrefix.hashCode() ^positivePrefix.hashCode() ^ positiveSuffix.hashCode()); return hash; | return toPattern().hashCode(); | public int hashCode () { int hash = (negativeSuffix.hashCode() ^ negativePrefix.hashCode() ^positivePrefix.hashCode() ^ positiveSuffix.hashCode()); // FIXME. return hash; } |
public String[] split(String regex) | public String[] split(String regex, int limit) | public String[] split(String regex) { return Pattern.compile(regex).split(this, 0); } |
return Pattern.compile(regex).split(this, 0); | return Pattern.compile(regex).split(this, limit); | public String[] split(String regex) { return Pattern.compile(regex).split(this, 0); } |
protected VmImplementedInterface(VmType vmClass) { if (vmClass == null) { throw new IllegalArgumentException("vmClass cannot be null"); | protected VmImplementedInterface(String className) { if (className == null) { throw new IllegalArgumentException("className cannot be null"); | protected VmImplementedInterface(VmType vmClass) { if (vmClass == null) { throw new IllegalArgumentException("vmClass cannot be null"); } if (vmClass instanceof VmInterfaceClass) { this.className = vmClass.getName(); this.resolvedClass = (VmInterfaceClass)vmClass; } else { throw new IllegalArgumentExceptio... |
if (vmClass instanceof VmInterfaceClass) { this.className = vmClass.getName(); this.resolvedClass = (VmInterfaceClass)vmClass; } else { throw new IllegalArgumentException("vmClass must be an interface class"); } | this.className = className; this.resolvedClass = null; | protected VmImplementedInterface(VmType vmClass) { if (vmClass == null) { throw new IllegalArgumentException("vmClass cannot be null"); } if (vmClass instanceof VmInterfaceClass) { this.className = vmClass.getName(); this.resolvedClass = (VmInterfaceClass)vmClass; } else { throw new IllegalArgumentExceptio... |
addNotify() { | public void addNotify() { | addNotify(){ if (getPeer() == null) setPeer((MenuComponentPeer)getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); } if (helpMenu != null) { helpMenu.addNotify(); ((MenuBarPeer) peer).addHelpMenu(helpMe... |
setPeer((MenuComponentPeer)getToolkit().createMenuBar(this)); | setPeer(getToolkit().createMenuBar(this)); | addNotify(){ if (getPeer() == null) setPeer((MenuComponentPeer)getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); } if (helpMenu != null) { helpMenu.addNotify(); ((MenuBarPeer) peer).addHelpMenu(helpMe... |
String param = super.paramString(); | protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + ",layout=" + layoutMgr.getClass().getName(); return param; } | |
param = param + ",layout=" + layoutMgr.getClass().getName(); | return super.paramString(); | protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + ",layout=" + layoutMgr.getClass().getName(); return param; } |
return param; | StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); | protected String paramString() { String param = super.paramString(); if (layoutMgr != null) param = param + ",layout=" + layoutMgr.getClass().getName(); return param; } |
remove(MenuComponent menu) { int index = menus.indexOf(menu); if (index == -1) return; | public synchronized void remove(int index) { Menu m = (Menu) menus.get(index); menus.remove(index); m.removeNotify(); m.parent = null; | remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} |
remove(index); } | if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.delMenu(index); } } | remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} |
removeNotify() { | public void removeNotify() { | removeNotify(){ Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu) e.nextElement(); mi.removeNotify(); } super.removeNotify();} |
throw new MARSHAL("Not applicable"); | MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; | public static POA read(InputStream input) { throw new MARSHAL("Not applicable"); } |
throw new MARSHAL("Not applicable"); | MARSHAL m = new MARSHAL("Inappropriate"); m.minor = Minor.Inappropriate; throw m; | public static void write(OutputStream output, POA value) { throw new MARSHAL("Not applicable"); } |
return new BorderUIResource.CompoundBorderUIResource(outer, inner); | buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; | public static Border getButtonBorder() { Border outer = new MetalButtonBorder(); Border inner = getMarginBorder(); return new BorderUIResource.CompoundBorderUIResource(outer, inner); } |
if (sharedMarginBorder == null) sharedMarginBorder = new BasicBorders.MarginBorder(); return sharedMarginBorder; | if (marginBorder == null) marginBorder = new BasicBorders.MarginBorder(); return marginBorder; | static Border getMarginBorder() // intentionally not public { /* Swing is not designed to be thread-safe, so there is no * need to synchronize the access to the global variable. */ if (sharedMarginBorder == null) sharedMarginBorder = new BasicBorders.MarginBorder(); return sharedMarginBorder; ... |
public JarFile(File file) throws FileNotFoundException, IOException | public JarFile(String fileName) throws FileNotFoundException, IOException | public JarFile(File file) throws FileNotFoundException, IOException { this(file, true); } |
this(file, true); | this(fileName, true); | public JarFile(File file) throws FileNotFoundException, IOException { this(file, true); } |
else { | public void connect() { String proxyPort = "1080"; // default socks proxy port boolean enhanced = false; boolean support132 = false; int port = 23; // default telnet port enhanced = sesProps.containsKey(SESSION_TN_ENHANCED); if (sesProps.containsKey(SESSION_SCREEN_SIZE)) if (((S... | |
sslType = org.tn5250j.transport.SSLConstants.SSL_TYPE_NONE; } | public void connect() { String proxyPort = "1080"; // default socks proxy port boolean enhanced = false; boolean support132 = false; int port = 23; // default telnet port enhanced = sesProps.containsKey(SESSION_TN_ENHANCED); if (sesProps.containsKey(SESSION_SCREEN_SIZE)) if (((S... | |
vt.isOnSignoffScreen(); | private void closeSession() { Object[] message = new Object[1]; message[0] = LangTool.getString("cs.message"); String[] options = {LangTool.getString("cs.optThis"), LangTool.getString("cs.optAll"), LangTool.getString("cs.optCancel")}; int r... | |
createShortCutItems(kbMenu); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()) - (screen.getCols()-1); if (!rubberband.isAreaSelected() && s... | |
jumpn = keyMap.isKeyStrokeDefined("[jumpnext]"); jumpp = keyMap.isKeyStrokeDefined("[jumpprev]"); | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP... | |
if (peer != null) | if (peer != null && !isLightweight()) | public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { // Find this Component's top-level ancestor. Container parent = getParent (); while (parent != null && !(parent instanceof... |
eq.postEvent (new FocusEvent(this, FocusEvent.FOCUS_GAINED)); | synchronized (eq) { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (); Component currentFocusOwner = manager.getGlobalPermanentFocusOwner (); if (currentFocusOwner != null) { eq.postEvent (new FocusEvent(currentFocusOwner, FocusEvent.FOCUS_LOST, false, this)); eq.postEvent (new Focus... | public void requestFocus () { if (isDisplayable () && isShowing () && isFocusable ()) { synchronized (getTreeLock ()) { // Find this Component's top-level ancestor. Container parent = getParent (); while (parent != null && !(parent instanceof... |
public void setLayer(Component c, int layer, int position) | public void setLayer(Component c, int layer) | public void setLayer(Component c, int layer, int position) { remove(c); add(c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); } |
remove(c); add(c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); | componentToLayer.put (c, getObjectForLayer (layer)); | public void setLayer(Component c, int layer, int position) { remove(c); add(c, getObjectForLayer (layer)); setPosition(c, position); revalidate(); repaint(); } |
else if (location.length() > 0) { if (location.charAt(0) == '/') { file = location; } else { int lsi = file.lastIndexOf('/'); file = (lsi == -1) ? "/" : file.substring(0, lsi + 1); file += location; } retry = true; } | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | |
if (response.getCode() == 404) { errorSink = responseSink; throw new FileNotFoundException(url.toString()); } | public void connect() throws IOException { if (connected) { return; } String protocol = url.getProtocol(); boolean secure = "https".equals(protocol); String host = url.getHost(); int port = url.getPort(); if (port < 0) { port = secure ? HTTPConnection.HTTPS_PORT : ... | |
hostnameVerifier = defaultVerifier; factory = defaultFactory; | protected HttpsURLConnection(URL url) throws IOException { super(url); hostnameVerifier = defaultVerifier; factory = defaultFactory; } | |
if (factory == null) { factory = getDefaultSSLSocketFactory(); } | public SSLSocketFactory getSSLSocketFactory() { return factory; } | |
if (hostnameVerifier == null) { hostnameVerifier = getDefaultHostnameVerifier(); } | public HostnameVerifier getHostnameVerifier() { return hostnameVerifier; } | |
public HTTPConnection(String hostname, int port, boolean secure) | public HTTPConnection(String hostname) | public HTTPConnection(String hostname, int port, boolean secure) { this(hostname, port, secure, 0, 0); } |
this(hostname, port, secure, 0, 0); | this(hostname, HTTP_PORT, false, 0, 0); | public HTTPConnection(String hostname, int port, boolean secure) { this(hostname, port, secure, 0, 0); } |
public String toUpperCase() | public String toUpperCase(Locale loc) | public String toUpperCase() { return toUpperCase(Locale.getDefault()); } |
return toUpperCase(Locale.getDefault()); | boolean turkish = "tr".equals(loc.getLanguage()); int expand = 0; boolean unchanged = true; int i = count; int x = i + offset; while (--i >= 0) { char ch = value[--x]; expand += upperCaseExpansion(ch); unchanged = (unchanged && expand == 0 && ! (turkish && ch == '\u0069') && ch == Character.toUpperCase(ch)); } if (unch... | public String toUpperCase() { return toUpperCase(Locale.getDefault()); } |
catch (ThreadDeath death) { throw death; } | public static Toolkit getDefaultToolkit() { if (toolkit != null) return toolkit; String toolkit_name = System.getProperty("awt.toolkit", default_toolkit_name); try { Class cls = Class.forName(toolkit_name); Object obj = cls.newInstance(); if (!(obj... | |
m.startNewSession(); for (int x = 1; x < os400_sessions.size(); x++ ) { | for (int x = 0; x < os400_sessions.size(); x++ ) { | static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de... |
try { wait(); } catch(InterruptedException ie) { System.out.println(" updateProgress " + ie.getMessage() ); } | public synchronized void updateProgress(int prog) { progress = prog; repaint(); // wait for it to be painted to ensure progress is updated // continuously// try {// wait();// }// catch(InterruptedException ie) {// System.out.println(" updateProgress " + ie.getMessage() );// } } | |
public Socket(String host, int port) throws UnknownHostException, IOException | public Socket() | public Socket(String host, int port) throws UnknownHostException, IOException { this(InetAddress.getByName(host), port, null, 0, true); } |
this(InetAddress.getByName(host), port, null, 0, true); | if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); | public Socket(String host, int port) throws UnknownHostException, IOException { this(InetAddress.getByName(host), port, null, 0, true); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.