Package com.dotcms.repackage.com.thoughtworks.xstream

Examples of com.dotcms.repackage.com.thoughtworks.xstream.XStream.toXML()


                    } catch (InterruptedException e) {
                      Logger.warn(this, "An error ocurred trying to create XML files");
                        Logger.error(this,e.getMessage(),e);
                    }

            _xstream.toXML(_list, _bout);

            _bout.close();
            _list = null;
            _dh = null;
            _bout = null;
View Full Code Here


      _list = PublicCompanyFactory.getCompanies();
      List<Company> companies = new ArrayList<Company>(_list);
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/" + Company.class.getName() + ".xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* Users */
 
View Full Code Here

      _list = APILocator.getUserAPI().findAllUsers();
      _list.add(APILocator.getUserAPI().getDefaultUser());
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/" + User.class.getName() + ".xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* Roles */
 
View Full Code Here

      dc.setSQL("select * from counter");
      _list = dc.getResults();
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Counter.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* counter */
 
View Full Code Here

      dc.setSQL("select * from address");
      _list = dc.getResults();
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Address.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* pollschoice */
 
View Full Code Here

      dc.setSQL("select * from pollschoice");
      _list = dc.getResults();
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Pollschoice.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* pollsdisplay */
 
View Full Code Here

      dc.setSQL("select * from pollsdisplay");
      _list = dc.getResults();
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Pollsdisplay.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* pollsquestion */
 
View Full Code Here

      dc.setSQL("select * from pollsquestion");
      _list = dc.getResults();
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Pollsquestion.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* pollsvote */
 
View Full Code Here

      dc.setSQL("select * from pollsvote");
      _list = dc.getResults();
      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Pollsvote.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* image */
 
View Full Code Here

       */

      _xstream = new XStream(new DomDriver());
      _writing = new File(backupTempFilePath + "/Image.xml");
      _bout = new BufferedOutputStream(new FileOutputStream(_writing));
      _xstream.toXML(_list, _bout);
      _bout.close();
      _list = null;
      _bout = null;

      /* portlet */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.