public static Header readHeader(ArrayDataInput dis) throws TruncatedFileException, IOException {
  Header myHeader=new Header();
  try {
    myHeader.read(dis);
  }
 catch (  EOFException e) {
    if (e.getCause() instanceof TruncatedFileException) {
      throw e;
    }
    return null;
  }
  return myHeader;
}

public static Header readHeader ( ArrayDataInput dis ) throws TruncatedFileException , IOException { Header myHeader = new Header ( ) ; try { myHeader . read ( dis ) ; } catch ( EOFException e ) { if ( e . getCause ( ) instanceof TruncatedFileException ) { throw e ; } return null ; } return myHeader ; }
create a header by reading the information from the input stream .
