@Override public void fillHeader(Header hdr){
  try {
    Standard.context(AsciiTable.class);
    hdr.setXtension("TABLE");
    hdr.setBitpix(BasicHDU.BITPIX_BYTE);
    hdr.setNaxes(2);
    hdr.setNaxis(1,this.rowLen);
    hdr.setNaxis(2,this.nRows);
    Cursor<String,HeaderCard> iter=hdr.iterator();
    iter.setKey(NAXIS2.key());
    iter.next();
    iter.add(new HeaderCard(PCOUNT.key(),0,PCOUNT.comment()));
    iter.add(new HeaderCard(GCOUNT.key(),1,GCOUNT.comment()));
    iter.add(new HeaderCard(TFIELDS.key(),this.nFields,TFIELDS.comment()));
    for (int i=0; i < this.nFields; i+=1) {
      addColInfo(i,iter);
    }
  }
 catch (  HeaderCardException e) {
    LOG.log(Level.SEVERE,"ImpossibleException in fillHeader:" + e.getMessage(),e);
  }
 finally {
    Standard.context(null);
  }
}

@ Override public void fillHeader ( Header hdr ) { try { Standard . context ( AsciiTable . class ) ; hdr . setXtension ( "TABLE" ) ; hdr . setBitpix ( BasicHDU . BITPIX_BYTE ) ; hdr . setNaxes ( 2 ) ; hdr . setNaxis ( 1 , this . rowLen ) ; hdr . setNaxis ( 2 , this . nRows ) ; Cursor < String , HeaderCard > iter = hdr . iterator ( ) ; iter . setKey ( NAXIS2 . key ( ) ) ; iter . next ( ) ; iter . add ( new HeaderCard ( PCOUNT . key ( ) , 0 , PCOUNT . comment ( ) ) ) ; iter . add ( new HeaderCard ( GCOUNT . key ( ) , 1 , GCOUNT . comment ( ) ) ) ; iter . add ( new HeaderCard ( TFIELDS . key ( ) , this . nFields , TFIELDS . comment ( ) ) ) ; for ( int i = 0 ; i < this . nFields ; i += 1 ) { addColInfo ( i , iter ) ; } } catch ( HeaderCardException e ) { LOG . log ( Level . SEVERE , "ImpossibleException in fillHeader:" + e . getMessage ( ) , e ) ; } finally { Standard . context ( null ) ; } }
fill in a header with information that points to this data .
