public Object readCostMatrixOld(Element node) throws Exception {
  weka.classifiers.CostMatrix matrix;
  weka.core.matrix.Matrix matrixNew;
  StringWriter writer;
  if (DEBUG) {
    trace(new Throwable(),node.getAttribute(ATT_NAME));
  }
  m_CurrentNode=node;
  matrixNew=(weka.core.matrix.Matrix)readMatrix(node);
  writer=new StringWriter();
  matrixNew.write(writer);
  matrix=new weka.classifiers.CostMatrix(new StringReader(writer.toString()));
  return matrix;
}

public Object readCostMatrixOld ( Element node ) throws Exception { weka . classifiers . CostMatrix matrix ; weka . core . matrix . Matrix matrixNew ; StringWriter writer ; if ( DEBUG ) { trace ( new Throwable ( ) , node . getAttribute ( ATT_NAME ) ) ; } m_CurrentNode = node ; matrixNew = ( weka . core . matrix . Matrix ) readMatrix ( node ) ; writer = new StringWriter ( ) ; matrixNew . write ( writer ) ; matrix = new weka . classifiers . CostMatrix ( new StringReader ( writer . toString ( ) ) ) ; return matrix ; }
builds the matrix ( old ) from the given dom node .
