public DiphoneUnitDatabase(URL url,boolean isBinary) throws IOException {
  if (!useIndexing || useCache) {
    diphoneMap=new LinkedHashMap();
  }
  InputStream is=Utilities.getInputStream(url);
  indexName=getIndexName(url.toString());
  if (isBinary) {
    loadBinary(is);
  }
 else {
    loadText(is);
  }
  is.close();
  sampleInfo=new SampleInfo(sampleRate,numChannels,residualFold,lpcMin,lpcRange,0.0f);
}

public DiphoneUnitDatabase ( URL url , boolean isBinary ) throws IOException { if ( ! useIndexing || useCache ) { diphoneMap = new LinkedHashMap ( ) ; } InputStream is = Utilities . getInputStream ( url ) ; indexName = getIndexName ( url . toString ( ) ) ; if ( isBinary ) { loadBinary ( is ) ; } else { loadText ( is ) ; } is . close ( ) ; sampleInfo = new SampleInfo ( sampleRate , numChannels , residualFold , lpcMin , lpcRange , 0.0f ) ; }
creates the diphoneunitdatabase from the given input stream .
