private void open(File fileName,boolean append) throws IOException {
  int len=0;
  len=(int)fileName.length();
  FileOutputStream fout=new FileOutputStream(fileName.toString(),true);
  BufferedOutputStream bout=new BufferedOutputStream(fout);
  meteredStream=new MeteredStream(bout,len);
  setOutputStream(meteredStream);
  checkForHeaderWritten(fileName.toString());
}

private void open ( File fileName , boolean append ) throws IOException { int len = 0 ; len = ( int ) fileName . length ( ) ; FileOutputStream fout = new FileOutputStream ( fileName . toString ( ) , true ) ; BufferedOutputStream bout = new BufferedOutputStream ( fout ) ; meteredStream = new MeteredStream ( bout , len ) ; setOutputStream ( meteredStream ) ; checkForHeaderWritten ( fileName . toString ( ) ) ; }
algorithm : check how many bytes have already been written to to that file get an instance of meteredstream and assign it as the output stream . create a file of the name of fileoutputstream .
