jdk/src/share/classes/java/nio/channels/ServerSocketChannel.java
changeset 2057 3acf8e5e2ca0
parent 1247 b4c26443dee5
child 5506 202f599c92aa
equal deleted inserted replaced
2056:115e09b7a004 2057:3acf8e5e2ca0
     1 /*
     1 /*
     2  * Copyright 2000-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2000-2009 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
    27 
    27 
    28 import java.io.IOException;
    28 import java.io.IOException;
    29 import java.net.ServerSocket;
    29 import java.net.ServerSocket;
    30 import java.net.SocketOption;
    30 import java.net.SocketOption;
    31 import java.net.SocketAddress;
    31 import java.net.SocketAddress;
    32 import java.nio.channels.spi.*;
    32 import java.nio.channels.spi.AbstractSelectableChannel;
       
    33 import java.nio.channels.spi.SelectorProvider;
    33 
    34 
    34 /**
    35 /**
    35  * A selectable channel for stream-oriented listening sockets.
    36  * A selectable channel for stream-oriented listening sockets.
    36  *
    37  *
    37  * <p> A server-socket channel is created by invoking the {@link #open() open}
    38  * <p> A server-socket channel is created by invoking the {@link #open() open}
   193      */
   194      */
   194     public abstract ServerSocketChannel bind(SocketAddress local, int backlog)
   195     public abstract ServerSocketChannel bind(SocketAddress local, int backlog)
   195         throws IOException;
   196         throws IOException;
   196 
   197 
   197     /**
   198     /**
       
   199      * @throws  UnsupportedOperationException           {@inheritDoc}
   198      * @throws  IllegalArgumentException                {@inheritDoc}
   200      * @throws  IllegalArgumentException                {@inheritDoc}
   199      * @throws  ClosedChannelException                  {@inheritDoc}
   201      * @throws  ClosedChannelException                  {@inheritDoc}
   200      * @throws  IOException                             {@inheritDoc}
   202      * @throws  IOException                             {@inheritDoc}
   201      *
   203      *
   202      * @since 1.7
   204      * @since 1.7