src/java.base/share/classes/java/nio/channels/DatagramChannel.java
changeset 58803 1bd307ea5497
parent 58518 705c3f88a409
child 59089 de56632f796d
equal deleted inserted replaced
58802:808bbdb79916 58803:1bd307ea5497
   303      *
   303      *
   304      * @throws  UnsupportedAddressTypeException
   304      * @throws  UnsupportedAddressTypeException
   305      *          If the type of the given remote address is not supported
   305      *          If the type of the given remote address is not supported
   306      *
   306      *
   307      * @throws  SecurityException
   307      * @throws  SecurityException
   308      *          If a security manager has been installed
   308      *          If a security manager has been installed and it does not
   309      *          and it does not permit access to the given remote address
   309      *          permit access to the given remote address, or if unbound,
       
   310      *          the security manager {@link SecurityManager#checkListen checkListen}
       
   311      *          method denies the operation
   310      *
   312      *
   311      * @throws  IOException
   313      * @throws  IOException
   312      *          If some other I/O error occurs
   314      *          If some other I/O error occurs
   313      */
   315      */
   314     public abstract DatagramChannel connect(SocketAddress remote)
   316     public abstract DatagramChannel connect(SocketAddress remote)
   407      *          If another thread interrupts the current thread
   409      *          If another thread interrupts the current thread
   408      *          while the read operation is in progress, thereby
   410      *          while the read operation is in progress, thereby
   409      *          closing the channel and setting the current thread's
   411      *          closing the channel and setting the current thread's
   410      *          interrupt status
   412      *          interrupt status
   411      *
   413      *
       
   414      * @throws  SecurityException
       
   415      *          If unbound, and a security manager has been installed and
       
   416      *          its {@link SecurityManager#checkListen checkListen} method
       
   417      *          denies the operation
       
   418      *
   412      * @throws  IOException
   419      * @throws  IOException
   413      *          If some other I/O error occurs
   420      *          If some other I/O error occurs
   414      */
   421      */
   415     public abstract SocketAddress receive(ByteBuffer dst) throws IOException;
   422     public abstract SocketAddress receive(ByteBuffer dst) throws IOException;
   416 
   423 
   478      *
   485      *
   479      * @throws  UnsupportedAddressTypeException
   486      * @throws  UnsupportedAddressTypeException
   480      *          If the type of the given remote address is not supported
   487      *          If the type of the given remote address is not supported
   481      *
   488      *
   482      * @throws  SecurityException
   489      * @throws  SecurityException
   483      *          If a security manager has been installed
   490      *          If a security manager has been installed and it does not permit
   484      *          and it does not permit datagrams to be sent
   491      *          datagrams to be sent to the given address, or if unbound, and
   485      *          to the given address
   492      *          the security manager's {@link SecurityManager#checkListen checkListen}
       
   493      *          method denies the operation
   486      *
   494      *
   487      * @throws  IOException
   495      * @throws  IOException
   488      *          If some other I/O error occurs
   496      *          If some other I/O error occurs
   489      */
   497      */
   490     public abstract int send(ByteBuffer src, SocketAddress target)
   498     public abstract int send(ByteBuffer src, SocketAddress target)