System.out.println( localPeer.id + " <- " + id + " (" + methodName + ")" ); localPeer.HandleMethod( this, methodName.toString(), args );
  private boolean ProcessReadBuffer()  {    while ( readBuffer.position() > readIndex )    {      byte b = readBuffer.get( readIndex++ );      if ( b == '\n' )      {        int diff = readBuffer.position() - readIndex;        byte[] message = new byte[readIndex];        readBuffer.position( 0 );        readBuffer.get( message, 0, readIndex );        readBuffer.compact();        readBuffer.position( diff );        readIndex = 0;        Vector args = new Vector();        StringBuffer methodName = new StringBuffer();        XMLEnvelopeProcessor.decode( new String( message ), methodName, args );      }    }    return true;  }