@Override public void initiaize(File file,int entryCount) throws CarbonSortKeyAndGroupByException {
  try {
    stream=new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file),writeBufferSize));
    stream.writeInt(entryCount);
  }
 catch (  FileNotFoundException e1) {
    throw new CarbonSortKeyAndGroupByException(e1);
  }
catch (  IOException e) {
    throw new CarbonSortKeyAndGroupByException(e);
  }
}

@ Override public void initiaize ( File file , int entryCount ) throws CarbonSortKeyAndGroupByException { try { stream = new DataOutputStream ( new BufferedOutputStream ( new FileOutputStream ( file ) , writeBufferSize ) ) ; stream . writeInt ( entryCount ) ; } catch ( FileNotFoundException e1 ) { throw new CarbonSortKeyAndGroupByException ( e1 ) ; } catch ( IOException e ) { throw new CarbonSortKeyAndGroupByException ( e ) ; } }
below method will be used to initialize the stream and write the entry count
