equal
deleted
inserted
replaced
491 */ |
491 */ |
492 public final long write(ByteBuffer[] srcs) throws IOException { |
492 public final long write(ByteBuffer[] srcs) throws IOException { |
493 return write(srcs, 0, srcs.length); |
493 return write(srcs, 0, srcs.length); |
494 } |
494 } |
495 |
495 |
|
496 /** |
|
497 * {@inheritDoc} |
|
498 * <p> |
|
499 * If there is a security manager set, its {@code checkConnect} method is |
|
500 * called with the local address and {@code -1} as its arguments to see |
|
501 * if the operation is allowed. If the operation is not allowed, |
|
502 * a {@code SocketAddress} representing the |
|
503 * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the |
|
504 * local port of the channel's socket is returned. |
|
505 * |
|
506 * @return The {@code SocketAddress} that the socket is bound to, or the |
|
507 * {@code SocketAddress} representing the loopback address if |
|
508 * denied by the security manager, or {@code null} if the |
|
509 * channel's socket is not bound |
|
510 * |
|
511 * @throws ClosedChannelException {@inheritDoc} |
|
512 * @throws IOException {@inheritDoc} |
|
513 */ |
|
514 @Override |
|
515 public abstract SocketAddress getLocalAddress() throws IOException; |
|
516 |
496 } |
517 } |