public static void writeApplicationXml(ApplicationXml appXml,File file,String encoding,boolean isIndent) throws IOException {
  OutputStream out=null;
  try {
    out=new FileOutputStream(file);
    writeApplicationXml(appXml,out,encoding,isIndent);
  }
  finally {
    if (out != null) {
      try {
        out.close();
      }
 catch (      IOException ioe) {
      }
    }
  }
}

public static void writeApplicationXml ( ApplicationXml appXml , File file , String encoding , boolean isIndent ) throws IOException { OutputStream out = null ; try { out = new FileOutputStream ( file ) ; writeApplicationXml ( appXml , out , encoding , isIndent ) ; } finally { if ( out != null ) { try { out . close ( ) ; } catch ( IOException ioe ) { } } } }
writes the specified document to a file .
