private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.nio.channels.DatagramChannel#disconnect() */ @Override synchronized public DatagramChannel disconnect() throws IOException { if (!isConnected() || !isOpen()) { return this; } connected = false; connectAddress = null; try { Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } if (socket != null) { socket.disconnect(); } return this; }
private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
private void checkOpen() throws IOException { if (!isOpen()) { throw new ClosedChannelException(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.net.DatagramSocket#close() */ @Override public void close() { synchronized (channelImpl) { if (channelImpl.isOpen()) { try { channelImpl.close(); } catch (IOException e) { // Ignore } } super.close(); } }
/** * @see java.nio.channels.DatagramChannel#disconnect() */ @Override synchronized public DatagramChannel disconnect() throws IOException { if (!isConnected() || !isOpen()) { return this; } connected = false; connectAddress = null; try { Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } if (socket != null) { socket.disconnect(); } return this; }
/** * @see java.nio.channels.DatagramChannel#disconnect() */ @Override synchronized public DatagramChannel disconnect() throws IOException { if (!isConnected() || !isOpen()) { return this; } connected = false; connectAddress = null; try { Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } if (socket != null) { socket.disconnect(); } return this; }
/** * @see java.nio.channels.DatagramChannel#disconnect() */ @Override synchronized public DatagramChannel disconnect() throws IOException { if (!isConnected() || !isOpen()) { return this; } connected = false; connectAddress = null; try { Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } if (socket != null) { socket.disconnect(); } return this; }
/** * @see java.nio.channels.DatagramChannel#disconnect() */ @Override synchronized public DatagramChannel disconnect() throws IOException { if (!isConnected() || !isOpen()) { return this; } connected = false; connectAddress = null; try { Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } if (socket != null) { socket.disconnect(); } return this; }
/** * @see java.nio.channels.DatagramChannel#disconnect() */ @Override synchronized public DatagramChannel disconnect() throws IOException { if (!isConnected() || !isOpen()) { return this; } connected = false; connectAddress = null; try { Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } if (socket != null) { socket.disconnect(); } return this; }