public void init(SocketChannel channel){
  _channel=channel;
  _readBuffer.clear();
  _readBuffer.flip();
  _needsFlush=false;
}

public void init ( SocketChannel channel ) { _channel = channel ; _readBuffer . clear ( ) ; _readBuffer . flip ( ) ; _needsFlush = false ; }
initialize the socketstream with a new socket .
