private void writeDocument(String fullDocument,String filename){
  File outFile=new File(mOutputDir,filename + ".xml");
  BufferedWriter bw=null;
  try {
    bw=new BufferedWriter(new FileWriter(outFile));
    bw.append(fullDocument);
  }
 catch (  IOException e) {
    e.printStackTrace();
    Logger.printError(component,"File " + outFile.getAbsolutePath() + " could not be written.");
  }
 finally {
    try {
      bw.close();
    }
 catch (    IOException e) {
      e.printStackTrace();
      Logger.printError(component,"File " + outFile.getAbsolutePath() + " could not be closed.");
    }
  }
}

private void writeDocument ( String fullDocument , String filename ) { File outFile = new File ( mOutputDir , filename + ".xml" ) ; BufferedWriter bw = null ; try { bw = new BufferedWriter ( new FileWriter ( outFile ) ) ; bw . append ( fullDocument ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; Logger . printError ( component , "File " + outFile . getAbsolutePath ( ) + " could not be written." ) ; } finally { try { bw . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; Logger . printError ( component , "File " + outFile . getAbsolutePath ( ) + " could not be closed." ) ; } } }
writes a populated dom xml ( timeml ) document to a given directory / file
