bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void setVerticalAlignment(int alignment) { if (alignment == verticalAlignment) return; int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); }
public void setVerticalAlignment(int alignment) { if (alignment == verticalAlignment) return; int oldAlignment = verticalAlignment; verticalAlignment = checkVerticalKey(alignment, "verticalAlignment"); firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, oldAlignment, verticalAlignment); }
3,606
public void setVerticalTextPosition(int textPosition) { if (textPosition != verticalTextPosition) { int oldPos = verticalTextPosition; verticalTextPosition = checkVerticalKey(textPosition, "verticalTextPosition"); firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPE...
public void setVerticalTextPosition(int textPosition) { if (textPosition != verticalTextPosition) { int oldPos = verticalTextPosition; verticalTextPosition = checkVerticalKey(textPosition, "verticalTextPosition"); firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPE...
3,607
public void startInstruction(int address) { this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(address, offset); }
public void startInstruction(int address) { this.curInstrLabel = helper.getInstrLabel(address); if (startOfBB) { os.setObjectRef(curInstrLabel); startOfBB = false; } final int offset = os.getLength() - startOffset; cm.add(currentMethod, address, offset); }
3,610
public StringIndexOutOfBoundsException() { super(); }
public StringIndexOutOfBoundsException() { }
3,612
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); }
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); }
3,619
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); }
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(); }
3,620
protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if(abyte0[i] == IAC) { // -1 while(i < abyte0.length && abyte0[i++] == -1)// while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == 0x20)) switch(abyte0[i++]) ...
protected final boolean negotiate(byte abyte0[]) throws IOException { int i = 0; // from server negotiations if(abyte0[i] == IAC) { // -1 while(i < abyte0.length && abyte0[i++] == -1)// while(i < abyte0.length && (abyte0[i] == -1 || abyte0[i++] == 0x20)) switch(abyte0[i++]) ...
3,621
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi...
private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi...
3,624
private boolean writeToDisplayStructuredField() { boolean error = false; boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (!done) { int s = bk.getNextByte() & 0xff; switch (s) { ...
windowDefined = true; windowDefined = true; windowDefined = true; privatewindowDefined = true; booleanwindowDefined = true; writeToDisplayStructuredField()windowDefined = true; {windowDefined = true; windowDefined = true; windowDefined = true; windowDefined = true; windowDefined = true; windowDefined = true; booleanwin...
3,626
private boolean writeToDisplayStructuredField() { boolean error = false; boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (!done) { int s = bk.getNextByte() & 0xff; switch (s) { ...
private boolean writeToDisplayStructuredField() { boolean error = false; boolean done = false; int nextone; try { int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff)); while (!done) { int s = bk.getNextByte() & 0xff; switch (s) { ...
3,627
public SwingScrollPanePeer(ScrollPane scrollPane) { super(); SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); }
public SwingScrollPanePeer(ScrollPane scrollPane) { super(); SwingToolkit.add(scrollPane, this); SwingToolkit.copyAwtProperties(scrollPane, this); }
3,628
public void beginLayout() { }
public void beginLayout() { }
3,629
public void beginValidate() { }
public void beginValidate() { }
3,630
public boolean canDetermineObscurity() { return false; }
public boolean canDetermineObscurity() { return false; }
3,631
public void childResized(int w, int h) { }
public void childResized(int w, int h) { }
3,632
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
3,633
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
3,634
public void destroyBuffers() { }
public void destroyBuffers() { }
3,635
public void dispose() { }
public void dispose() { }
3,636
public void endLayout() { }
public void endLayout() { }
3,637
public void endValidate() { }
public void endValidate() { }
3,638
public void flip(BufferCapabilities.FlipContents flipContents) { }
public void flip(BufferCapabilities.FlipContents flipContents) { }
3,639
public Image getBackBuffer() { return null; }
public Image getBackBuffer() { return null; }
3,640
public int getHScrollbarHeight() { return 0; }
public int getHScrollbarHeight() { return 0; }
3,641
public int getVScrollbarWidth() { return 0; }
public int getVScrollbarWidth() { return 0; }
3,642
public void handleEvent(AWTEvent e) { //System.err.println(e); }
public void handleEvent(AWTEvent e) { //System.err.println(e); }
3,643
public boolean handlesWheelScrolling() { return false; }
public boolean handlesWheelScrolling() { return false; }
3,644
public boolean isObscured() { return false; }
public boolean isObscured() { return false; }
3,645
public boolean isPaintPending() { return false; }
public boolean isPaintPending() { return false; }
3,646
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
3,647
public void setEventMask(long mask) { // TODO Auto-generated method stub }
public void setEventMask(long mask) { // TODO Auto-generated method stub }
3,648
public void setEventMask(long mask) { // TODO Auto-generated method stub }
public void setEventMask(long mask) { // TODO Auto-generated method stub }
3,649
public void setScrollPosition(int x, int y) { }
public void setScrollPosition(int x, int y) { }
3,650
public void setUnitIncrement(Adjustable adj, int u) { }
public void setUnitIncrement(Adjustable adj, int u) { }
3,651
public void setValue(Adjustable adj, int v) { }
public void setValue(Adjustable adj, int v) { }
3,652
public void updateCursorImmediately() { }
public void updateCursorImmediately() { }
3,653
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;}
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;}
3,655
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); } return accessibleContext;}
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTMenuBar(); return accessibleContext;}
3,656
getPeer(){ return(peer);}
getPeer(){ return(peer);}
3,658
getToolkit(){ return(toolkit);}
getToolkit(){ return(toolkit);}
3,659
setPeer(MenuComponentPeer peer){ this.peer = peer;}
setPeer(MenuComponentPeer peer){ this.peer = peer;}
3,660
setPeer(MenuComponentPeer peer){ this.peer = peer;}
setPeer(MenuComponentPeer peer){ this.peer = peer;}
3,661
public AccessibleContext getAccessibleContext(){ return null;}
public AccessibleContext getAccessibleContext(){ return null;}
3,662
public AccessibleContext getAccessibleContext(){ return null;}
public AccessibleContext getAccessibleContext(){ return null;}
3,663
removeNotify(){ if (peer != null) peer.dispose(); peer = null;}
removeNotify(){ if (peer != null) peer.dispose(); peer = null;}
3,664
removeNotify(){ if (peer != null) peer.dispose(); peer = null;}
removeNotify(){ if (peer != null) peer.dispose(); peer = null;}
3,665
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getHeight(); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math.max(0,...
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math....
3,666
public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); }
public JSpinner() { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); }
3,668
public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); }
public JSpinner(SpinnerModel model) { this.model = model; model.addChangeListener(listener); setEditor(createEditor(model)); updateUI(); }
3,669
public DateFormatter(DateFormat format) { super(); setFormat(format); }
public DateFormatter() { super(); setFormat(format); }
3,670
public DateFormatter(DateFormat format) { super(); setFormat(format); }
public DateFormatter(DateFormat format) { super(); setFormat(format); }
3,671
void installDefaults(JComponent c) { c.setOpaque(true); }
protected void installDefaults(JComponent c) { c.setOpaque(true); }
3,672
public void installUI(JComponent c) { super.installUI(c); installListeners(c); }
public void installUI(JComponent c) { super.installUI(c); installDefaults(c); }
3,674
void uninstallDefaults(JComponent c) { }
protected void uninstallDefaults(JComponent c) { }
3,675
public void uninstallUI(JComponent c) { uninstallListeners(c); }
public void uninstallUI(JComponent c) { super.uninstallUI(c); uninstallDefaults(c); }
3,676
public AccessibleJViewport() { // Nothing to do here. }
protected AccessibleJViewport() { // Nothing to do here. }
3,677
protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || damaged) // We cannot blit if the viewport is scrolled in both directions at // once. return false; Rectangle portBoun...
protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || (dy == 0 && dy == 0) || damaged) // We cannot blit if the viewport is scrolled in both directions at // once. return fals...
3,678
protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || damaged) // We cannot blit if the viewport is scrolled in both directions at // once. return false; Rectangle portBoun...
protected boolean computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) { if ((dx != 0 && dy != 0) || damaged) ...
3,679
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del...
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del...
3,680
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del...
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del...
3,681
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del...
public DelimitedDialog(JFrame parent) { JPanel opts = new JPanel(); opts.setBorder(BorderFactory.createTitledBorder( LangTool.getString("delm.labelOptions"))); opts.setLayout(new AlignLayout(2,5,5)); JLabel fdl = new JLabel(LangTool.getString("del...
3,682
public String parseData(byte[] cByte) { if (!translateIt) { return sbdata.toString(); } StringBuffer sb = new StringBuffer(bufferLength); int end = startOffset + length - 1; switch (type) { case 'P': // Packed decimal format // example field of buffer length 4 wi...
public String parseData(byte[] cByte) { if (!translateIt) { return sbdata.toString(); } StringBuffer sb = new StringBuffer(bufferLength); int end = startOffset + length - 1; switch (type) { case 'P': // Packed decimal format // example field of buffer length 4 wi...
3,684
public DocFlavor(String mimeType, String className) { if (mimeType == null || className == null) throw new NullPointerException(); parseMimeType(mimeType); this.className = className; }
public DocFlavor(String mimeType, String className) { if (mimeType == null || className == null) throw new NullPointerException(); parseMimeType(mimeType); myClassName = className; }
3,685
public String getMimeType() { // FIXME: Check if this algorithm is correct. String mimeType = getMediaType() + "/" + getMediaSubtype(); Iterator it = params.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); mimeType += "; " + entry.getKey() + "=\"" + entry.ge...
public String getMimeType(){// FIXME: Check if this algorithm is correct.String mimeType = getMediaType() + "/" + getMediaSubtype();Iterator it = params.entrySet().iterator();while (it.hasNext()){ Map.Entry entry = (Map.Entry) it.next(); mimeType += "; " + entry.getKey() + "=\"" + entry.getValue() + "\"";}return mimeTy...
3,686
public String getParameter(String paramName) { if (paramName == null) throw new NullPointerException(); return (String) params.get(paramName); }
public String getParameter(String paramName) { if (paramName == null) throw new NullPointerException(); return (String) params.get(paramName.toLowerCase()); }
3,687
public String getRepresentationClassName() { return className; }
public String getRepresentationClassName() { return myClassName; }
3,688
public int hashCode() { return ((mediaType.hashCode() * mediaSubtype.hashCode() * className.hashCode()) ^ params.hashCode()); }
public int hashCode() { return ((mediaType.hashCode() * mediaSubtype.hashCode() * myClassName.hashCode()) ^ params.hashCode()); }
3,689
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
int MEDIA = 1; int MEDIASUB = 2; int PARAM_NAME = 3; int PARAM_VALUE = 4; int COMMENT_START = 5; int MEDIA = 1; int MEDIASUB = 2; int PARAM_NAME = 3; int PARAM_VALUE = 4; int COMMENT_START = 5; privateint MEDIA = 1; int MEDIASUB = 2; int PARAM_NAME = 3; int PARAM_VALUE = 4; int COMMENT_START = 5; voidint MEDIA = 1; int...
3,690
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int state = 0; int lastState = 0; int tok; try { String paramName = null; StreamTokenizer in = new StreamTokenizer(new StringReader(mimeType)); in.resetSyntax(); in.whitespace...
3,691
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); while ((tok = in.nextToken()) != StreamTokenizer.TT_EOF) { switch (tok) { case StreamTokenizer.TT_WORD: if (state == 0) { mediaType = in.sval.t...
3,692
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
3,693
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
private void parseMimeType(String mimeType) { // FIXME: This method is know to be not completely correct, but it works for now. int pos = mimeType.indexOf(';'); if (pos != -1) { String tmp = mimeType.substring(pos + 2); mimeType = mimeType.substring(0, pos); pos = tmp.indexOf('='); params.put(tmp.s...
3,694
public String toString() { return getMimeType(); }
public String toString() { return getMimeType() + "; class=\"" + getRepresentationClassName() + "\""; }
3,695
public void layoutContainer(Container container) { Component[] buttonList = container.getComponents(); int x = container.getInsets().left; if (getCentersChildren()) x += (int) ((double) (container.getSize().width) / 2 - (double) (buttonRowLength(container)) / 2); for (int i = 0; i < buttonL...
public void layoutContainer(Container container) { Component[] buttonList = container.getComponents(); int x = container.getInsets().left; if (getCentersChildren()) x += (int) ((double) (container.getSize().width) / 2 - (double) (buttonRowLength(container)) / 2); for (int i = 0; i < buttonL...
3,696
public void setCentersChildren(boolean newValue) { centersChildren = newValue; optionPane.invalidate(); }
public void setCentersChildren(boolean newValue) { centersChildren = newValue; optionPane.invalidate(); }
3,697
public void setPadding(int newPadding) { padding = newPadding; optionPane.invalidate(); }
public void setPadding(int newPadding) { padding = newPadding; optionPane.invalidate(); }
3,698
public void setSyncAllWidths(boolean newValue) { syncAllWidths = newValue; optionPane.invalidate(); }
public void setSyncAllWidths(boolean newValue) { syncAllWidths = newValue; }
3,699
protected Container createSeparator() { return (Container) Box.createVerticalStrut(17); }
protected Container createSeparator() { return null; }
3,700
public boolean getWantsInput() { return wantsInput; }
public boolean getWantsInput() { return wantsInput; }
3,702
public Icon getIcon() { return icon; }
public Icon getIcon() { return icon; }
3,703
public Icon getIcon() { return icon; }
public Icon getIcon() { return icon; }
3,704
public Object getInitialValue() { return initialValue; }
public Object getInitialValue() { return initialValue; }
3,705
public void setInputValue(Object newValue) { if (inputValue != newValue) { Object old = inputValue; inputValue = newValue; firePropertyChange(INPUT_VALUE_PROPERTY, old, inputValue); } }
public void setInputValue(Object newValue) { if (inputValue != newValue) { Object old = inputValue; inputValue = newValue; firePropertyChange(INPUT_VALUE_PROPERTY, old, inputValue); } }
3,706
public void setInputValue(Object newValue) { if (inputValue != newValue) { Object old = inputValue; inputValue = newValue; firePropertyChange(INPUT_VALUE_PROPERTY, old, inputValue); } }
public void setInputValue(Object newValue) { if (inputValue != newValue) { Object old = inputValue; inputValue = newValue; firePropertyChange(INPUT_VALUE_PROPERTY, old, inputValue); } }
3,707
public Object getInitialSelectionValue() { return initialSelectionValue; }
public Object getInitialSelectionValue() { return initialSelectionValue; }
3,708
public Object getInitialSelectionValue() { return initialSelectionValue; }
public Object getInitialSelectionValue() { return initialSelectionValue; }
3,709
public DatagramChannel connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); socket.connect (remote); return this; }
public DatagramChannel connect (SocketAddress remote) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { channel.connect((InetSocketAddress) remote, 0); } catch (ClassCastException cce) { throw new IOException("unsupported socked address type"); } return this; }
3,711
public DatagramChannel disconnect () throws IOException { socket.disconnect (); return this; }
public DatagramChannel disconnect () throws IOException { channel.disconnect(); return this; }
3,712
protected void implCloseSelectableChannel () throws IOException { socket.close (); }
protected void implCloseSelectableChannel () throws IOException { channel.close(); }
3,713
protected void implConfigureBlocking (boolean blocking) throws IOException { socket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); }
protected void implConfigureBlocking (boolean blocking) throws IOException { channel.setBlocking(blocking); }
3,714
public boolean isConnected () { return socket.isConnected (); }
public boolean isConnected() { return socket.isConnected (); }
3,715
public boolean isConnected () { return socket.isConnected (); }
public boolean isConnected () { try { return channel.getPeerAddress() != null; } catch (IOException ioe) { return false; } }
3,716
public int read (ByteBuffer dst) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); int remaining = dst.remaining(); receive (dst); return remaining - dst.remaining(); }
public int read (ByteBuffer dst) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); int remaining = dst.remaining(); receive (dst); return remaining - dst.remaining(); }
3,717
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ...
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ...
3,718
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ...
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.remaining(); if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), ...
3,719
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ...
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ...
3,720
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ...
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ...
3,721
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ...
public int send (ByteBuffer src, SocketAddress target) throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (target instanceof InetSocketAddress && ((InetSocketAddress) target).isUnresolved()) throw new IOException("Target address not resolved"); byte[] buffer; int ...
3,722
public int write (ByteBuffer src) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); return send (src, socket.getRemoteSocketAddress()); }
public int write (ByteBuffer src) throws IOException { if (!isConnected ()) throw new NotYetConnectedException (); return channel.write(src); }
3,723
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm...
3,724