equal
deleted
inserted
replaced
563 */ |
563 */ |
564 public final long write(ByteBuffer[] srcs) throws IOException { |
564 public final long write(ByteBuffer[] srcs) throws IOException { |
565 return write(srcs, 0, srcs.length); |
565 return write(srcs, 0, srcs.length); |
566 } |
566 } |
567 |
567 |
|
568 /** |
|
569 * {@inheritDoc} |
|
570 * <p> |
|
571 * If there is a security manager set, its {@code checkConnect} method is |
|
572 * called with the local address and {@code -1} as its arguments to see |
|
573 * if the operation is allowed. If the operation is not allowed, |
|
574 * a {@code SocketAddress} representing the |
|
575 * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the |
|
576 * local port of the channel's socket is returned. |
|
577 * |
|
578 * @return The {@code SocketAddress} that the socket is bound to, or the |
|
579 * {@code SocketAddress} representing the loopback address if |
|
580 * denied by the security manager, or {@code null} if the |
|
581 * channel's socket is not bound |
|
582 * |
|
583 * @throws ClosedChannelException {@inheritDoc} |
|
584 * @throws IOException {@inheritDoc} |
|
585 */ |
|
586 @Override |
|
587 public abstract SocketAddress getLocalAddress() throws IOException; |
|
588 |
568 } |
589 } |