private void loadBinary(DataInputStream dis) throws IOException {
  int size;
  if (dis.readInt() != MAGIC) {
    throw new Error("Bad magic in db");
  }
  if (dis.readInt() != VERSION) {
    throw new Error("Bad VERSION in db");
  }
  sampleRate=dis.readInt();
  numChannels=dis.readInt();
  lpcMin=dis.readFloat();
  lpcRange=dis.readFloat();
  size=dis.readInt();
  for (int i=0; i < size; i++) {
    Diphone diphone=Diphone.loadBinary(dis);
    add(diphone);
  }
}

private void loadBinary ( DataInputStream dis ) throws IOException { int size ; if ( dis . readInt ( ) != MAGIC ) { throw new Error ( "Bad magic in db" ) ; } if ( dis . readInt ( ) != VERSION ) { throw new Error ( "Bad VERSION in db" ) ; } sampleRate = dis . readInt ( ) ; numChannels = dis . readInt ( ) ; lpcMin = dis . readFloat ( ) ; lpcRange = dis . readFloat ( ) ; size = dis . readInt ( ) ; for ( int i = 0 ; i < size ; i ++ ) { Diphone diphone = Diphone . loadBinary ( dis ) ; add ( diphone ) ; } }
loads the binary data from the given input stream .
