Back to project page jpdroid.
The source code is released under:
GNU General Public License
If you think the Android project jpdroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package br.com.rafael.jpdroid.util; // w w w. j ava2s. c o m import br.com.rafael.jpdroid.core.JpdroidWriteFile; import android.database.Cursor; /** * Classe respons?vel por exportar arquivos no formato XML para o cart?o de mem?ria. * * @author Rafael Centenaro * */ public class JpdroidXmlFile extends JpdroidWriteFile { public static void export(Object entity) { export(entity, "XmlFile" + getDateNow() + ".XML"); } public static void export(Object entity, String fileName) { try { writeFile(JpdroidConverter.toXml(entity), fileName); } catch (Exception e) { e.printStackTrace(); } } public static void export(Cursor cursor) { export(cursor, "XmlFile" + getDateNow() + ".XML"); } public static void export(Cursor cursor, String fileName) { try { writeFile(JpdroidConverter.toXml(cursor), fileName); } catch (Exception e) { e.printStackTrace(); } } }