public NioProcessor(Executor executor){
  super(executor);
  try {
    selector=Selector.open();
  }
 catch (  IOException e) {
    throw new RuntimeIoException("Failed to open a selector.",e);
  }
}

public NioProcessor ( Executor executor ) { super ( executor ) ; try { selector = Selector . open ( ) ; } catch ( IOException e ) { throw new RuntimeIoException ( "Failed to open a selector." , e ) ; } }
creates a new instance of nioprocessor .
