Package com.salas.bbutilities.opml.export

Examples of com.salas.bbutilities.opml.export.Exporter


     * @throws IOException if output operation fails.
     */
    private void storeSet(GuidesSet set)
        throws IOException
    {
        com.salas.bbutilities.opml.export.Exporter exporter = new Exporter(true);
        Document doc = exporter.export(Converter.convertToOPML(set, OPML_TITLE));

        writeBackupToFile(doc, new File(backupsDir, createBackupFileName()));
    }
View Full Code Here


        // Calculate feed hashes basing on their present XML URLs for later updates upon successful completion
        Map<DirectFeed, Integer> feedHashes = calculateFeedHashes(guidesSet);

        OPMLGuideSet opmlSet = Converter.convertToOPML(guidesSet, "BlogBridge Feeds");
        Document doc = new Exporter(true).export(opmlSet);

        // prepare parameters for server call
        String opml = Transformation.documentToString(doc);

        int userId = ServerService.syncStore(aEmail, aPassword, opml);
View Full Code Here

     * @param filename      filename to use for writing.
     * @param extended      TRUE to perform export in the extended mode.
     */
    void processExport(OPMLGuide[] opmlGuides, String filename, boolean extended)
    {
        Exporter exporter = new Exporter(extended);
        Document doc = exporter.export(Converter.convertToOPML(opmlGuides, OPML_TITLE));

        try
        {
            FileOutputStream fos = new FileOutputStream(filename);
            XMLOutputter xo = new XMLOutputter();
View Full Code Here

TOP

Related Classes of com.salas.bbutilities.opml.export.Exporter

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.