public static void readSkel(BufferedReader reader) throws IOException {
  Vector lines=new Vector();
  StringBuffer section=new StringBuffer();
  String ln;
  while ((ln=reader.readLine()) != null) {
    if (ln.startsWith("---")) {
      lines.addElement(section.toString());
      section.setLength(0);
    }
 else {
      section.append(ln);
      section.append(NL);
    }
  }
  if (section.length() > 0)   lines.addElement(section.toString());
  if (lines.size() != size) {
    Out.error(ErrorMessages.WRONG_SKELETON);
    throw new GeneratorException();
  }
  line=new String[size];
  for (int i=0; i < size; i++)   line[i]=(String)lines.elementAt(i);
}

public static void readSkel ( BufferedReader reader ) throws IOException { Vector lines = new Vector ( ) ; StringBuffer section = new StringBuffer ( ) ; String ln ; while ( ( ln = reader . readLine ( ) ) != null ) { if ( ln . startsWith ( "---" ) ) { lines . addElement ( section . toString ( ) ) ; section . setLength ( 0 ) ; } else { section . append ( ln ) ; section . append ( NL ) ; } } if ( section . length ( ) > 0 ) lines . addElement ( section . toString ( ) ) ; if ( lines . size ( ) != size ) { Out . error ( ErrorMessages . WRONG_SKELETON ) ; throw new GeneratorException ( ) ; } line = new String [ size ] ; for ( int i = 0 ; i < size ; i ++ ) line [ i ] = ( String ) lines . elementAt ( i ) ; }
reads an external skeleton file from a bufferedreader .
