private static void deserializeHeader(KdbHeader kdbHeader,DataInput dataInput) throws IOException {
  kdbHeader.setFlags(dataInput.readInt());
  kdbHeader.setVersion(dataInput.readInt());
  byte[] buffer=new byte[16];
  dataInput.readFully(buffer);
  kdbHeader.setMasterSeed(buffer);
  buffer=new byte[16];
  dataInput.readFully(buffer);
  kdbHeader.setEncryptionIv(buffer);
  kdbHeader.setGroupCount(dataInput.readInt());
  kdbHeader.setEntryCount(dataInput.readInt());
  byte[] buffer32=new byte[32];
  dataInput.readFully(buffer32);
  kdbHeader.setContentHash(buffer32);
  buffer32=new byte[32];
  dataInput.readFully(buffer32);
  kdbHeader.setTransformSeed(buffer32);
  kdbHeader.setTransformRounds(dataInput.readInt());
}

private static void deserializeHeader ( KdbHeader kdbHeader , DataInput dataInput ) throws IOException { kdbHeader . setFlags ( dataInput . readInt ( ) ) ; kdbHeader . setVersion ( dataInput . readInt ( ) ) ; byte [ ] buffer = new byte [ 16 ] ; dataInput . readFully ( buffer ) ; kdbHeader . setMasterSeed ( buffer ) ; buffer = new byte [ 16 ] ; dataInput . readFully ( buffer ) ; kdbHeader . setEncryptionIv ( buffer ) ; kdbHeader . setGroupCount ( dataInput . readInt ( ) ) ; kdbHeader . setEntryCount ( dataInput . readInt ( ) ) ; byte [ ] buffer32 = new byte [ 32 ] ; dataInput . readFully ( buffer32 ) ; kdbHeader . setContentHash ( buffer32 ) ; buffer32 = new byte [ 32 ] ; dataInput . readFully ( buffer32 ) ; kdbHeader . setTransformSeed ( buffer32 ) ; kdbHeader . setTransformRounds ( dataInput . readInt ( ) ) ; }
deserialize a header from a source into the supplied kdbheader
