Package org.dbwiki.data.io

Examples of org.dbwiki.data.io.ExportNodeWriter


      }

      _wiki = _server.get(args.name);

      // Write out the xml
      NodeWriter writer = new ExportNodeWriter();
      BufferedWriter outstr = new BufferedWriter(new OutputStreamWriter(out));
     
      writer.init(outstr);
      // new NodeIdentifier() gives a root node id
      _wiki.database().export(new NodeIdentifier(), _wiki.database().versionIndex().getLastVersion().number(), writer);
     
      outstr.close();
      out.close();
View Full Code Here


    } else if (request.type().isCopyPasteExport()) {
      this.respondToExportXMLRequest(request, new CopyPasteNodeWriter(),
          exchange);
      return;
    } else if (request.type().isExportXML()) {
      this.respondToExportXMLRequest(request, new ExportNodeWriter(),
          exchange);
      return;
    } else if (request.type().isExportJSON()) {
      this.respondToExportJSONRequest(request,
          new ExportJSONNodeWriter(),
View Full Code Here

TOP

Related Classes of org.dbwiki.data.io.ExportNodeWriter

Copyright © 2018 www.massapicom. 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.