Code example for ServerSocketChannel

Methods: register

0
        throw new IOException(msg);
    } 
 
    @Override 
    public SelectionKey register(Selector sel) throws ClosedChannelException {
        return mChannel.register(sel, SelectionKey.OP_ACCEPT);
    } 
 
    @Override 
    public int write(ByteBuffer[] src) throws IOException {
        final String msg = "Can't write ServerSocketChannel";
        assert false; 
        throw new IOException(msg);
    } 
 
    @Override 
    public long read(ByteBuffer[] byteBuffers) throws IOException {
        final String msg = "Can't read ServerSocketChannel";
        assert false; 
        throw new IOException(msg);
    }