< prev index next >

jdk/src/java.base/share/classes/java/net/DatagramSocketImpl.java

Print this page

        

*** 276,286 **** * @throws UnsupportedOperationException if the DatagramSocketImpl does not * support the option * * @throws NullPointerException if name is {@code null} * @throws IOException if an I/O problem occurs while attempting to set the option ! * @since 1.9 */ protected <T> void setOption(SocketOption<T> name, T value) throws IOException { if (name == StandardSocketOptions.SO_SNDBUF) { setOption(SocketOptions.SO_SNDBUF, value); } else if (name == StandardSocketOptions.SO_RCVBUF) { --- 276,286 ---- * @throws UnsupportedOperationException if the DatagramSocketImpl does not * support the option * * @throws NullPointerException if name is {@code null} * @throws IOException if an I/O problem occurs while attempting to set the option ! * @since 9 */ protected <T> void setOption(SocketOption<T> name, T value) throws IOException { if (name == StandardSocketOptions.SO_SNDBUF) { setOption(SocketOptions.SO_SNDBUF, value); } else if (name == StandardSocketOptions.SO_RCVBUF) {
*** 317,327 **** * support the option * * @throws NullPointerException if name is {@code null} * @throws IOException if an I/O problem occurs while attempting to set the option * ! * @since 1.9 */ @SuppressWarnings("unchecked") protected <T> T getOption(SocketOption<T> name) throws IOException { if (name == StandardSocketOptions.SO_SNDBUF) { return (T) getOption(SocketOptions.SO_SNDBUF); --- 317,327 ---- * support the option * * @throws NullPointerException if name is {@code null} * @throws IOException if an I/O problem occurs while attempting to set the option * ! * @since 9 */ @SuppressWarnings("unchecked") protected <T> T getOption(SocketOption<T> name) throws IOException { if (name == StandardSocketOptions.SO_SNDBUF) { return (T) getOption(SocketOptions.SO_SNDBUF);
< prev index next >