private void loadDatabase(ByteBuffer bb) throws IOException {
  int size;
  loadDatabaseHeader(bb);
  size=bb.getInt();
  diphoneIndex=new HashMap();
  for (int i=0; i < size; i++) {
    int pos=bb.position();
    Diphone diphone=Diphone.loadBinary(bb);
    add(diphone);
    diphoneIndex.put(diphone.getName(),new Integer(pos));
  }
}

private void loadDatabase ( ByteBuffer bb ) throws IOException { int size ; loadDatabaseHeader ( bb ) ; size = bb . getInt ( ) ; diphoneIndex = new HashMap ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int pos = bb . position ( ) ; Diphone diphone = Diphone . loadBinary ( bb ) ; add ( diphone ) ; diphoneIndex . put ( diphone . getName ( ) , new Integer ( pos ) ) ; } }
loads the database from the given byte buffer .
