public void write(OutputStream os) throws DataIOException {
  try {
    PrintStream out=new PrintStream(new BufferedOutputStream(os));
    for (int i=0; i < names.length; ++i) {
      out.print(names[i]);
      out.print('\t');
      out.print(cols[i + 1] - cols[i]);
      out.println();
    }
  }
 catch (  Exception e) {
    throw new DataIOException(e);
  }
}

public void write ( OutputStream os ) throws DataIOException { try { PrintStream out = new PrintStream ( new BufferedOutputStream ( os ) ) ; for ( int i = 0 ; i < names . length ; ++ i ) { out . print ( names [ i ] ) ; out . print ( '\t' ) ; out . print ( cols [ i + 1 ] - cols [ i ] ) ; out . println ( ) ; } } catch ( Exception e ) { throw new DataIOException ( e ) ; } }
writes this schema description to the given output stream .
