@Override
    public void write( ByteBuffer data )
    {
        checkClosed();
        
        try {
            out.write(data.array(), data.position(), data.remaining());
        } catch( IOException e ) {
            throw new ConnectorException( "Error writing to connection:" + remoteAddress, e );
        }
    }
A straight forward socket-based connector implementation that
 does not use any separate threading.  It relies completely on
 the buffering in the OS network layer.

 @version   $Revision$
 @author    Paul Speed
jme3-networking/src/main/java/com/jme3/network/kernel/tcp/SocketConnector.java