equal
deleted
inserted
replaced
263 * @throws IOException |
263 * @throws IOException |
264 * If some other I/O error occurs |
264 * If some other I/O error occurs |
265 */ |
265 */ |
266 public abstract SocketChannel accept() throws IOException; |
266 public abstract SocketChannel accept() throws IOException; |
267 |
267 |
|
268 /** |
|
269 * {@inheritDoc} |
|
270 * <p> |
|
271 * If there is a security manager set, its {@code checkConnect} method is |
|
272 * called with the local address and {@code -1} as its arguments to see |
|
273 * if the operation is allowed. If the operation is not allowed, |
|
274 * a {@code SocketAddress} representing the |
|
275 * {@link java.net.InetAddress#getLoopbackAddress loopback} address and the |
|
276 * local port of the channel's socket is returned. |
|
277 * |
|
278 * @return The {@code SocketAddress} that the socket is bound to, or the |
|
279 * {@code SocketAddress} representing the loopback address if |
|
280 * denied by the security manager, or {@code null} if the |
|
281 * channel's socket is not bound |
|
282 * |
|
283 * @throws ClosedChannelException {@inheritDoc} |
|
284 * @throws IOException {@inheritDoc} |
|
285 */ |
|
286 @Override |
|
287 public abstract SocketAddress getLocalAddress() throws IOException; |
|
288 |
268 } |
289 } |