public SampleSet(DataInputStream is) throws IOException {
  int numSamples;
  sampleInfo=new SampleInfo(is);
  numSamples=is.readInt();
  this.samples=new Sample[numSamples];
  for (int i=0; i < numSamples; i++) {
    samples[i]=Sample.loadBinary(is);
  }
}

public SampleSet ( DataInputStream is ) throws IOException { int numSamples ; sampleInfo = new SampleInfo ( is ) ; numSamples = is . readInt ( ) ; this . samples = new Sample [ numSamples ] ; for ( int i = 0 ; i < numSamples ; i ++ ) { samples [ i ] = Sample . loadBinary ( is ) ; } }
creates a sampleset by reading it from the given input stream
