Examples of OPMLGuideSet


Examples of com.salas.bbutilities.opml.objects.OPMLGuideSet

        // parse output from server w/ possible empty guides
        final Importer im = new Importer();
        im.setAllowEmptyGuides(true);

        OPMLGuideSet set = im.processFromString(opml, false);

        GuidesSet remoteSet = Helper.createGuidesSet(null, set);
        final GuidesSet localSet = model.getGuidesSet();
        final Changes changes = evaluateChanges(localSet, remoteSet, copyServiceLayout);
View Full Code Here

Examples of com.salas.bbutilities.opml.objects.OPMLGuideSet

        GuidesSet guidesSet = model.getGuidesSet();

        // 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);
View Full Code Here

Examples of com.salas.bbutilities.opml.objects.OPMLGuideSet

     */
    public static void doImport(Importer aImporter, String aUrl, final boolean aSingle,
                                 final boolean aAppending, final GlobalModel aModel,
                                 final boolean isConfirmationRequired)
    {
        OPMLGuideSet guideSet = null;
        URL baseUrl = null;
        try
        {
            try
            {
                baseUrl = new URL(aUrl);
            } catch (MalformedURLException e)
            {
                throw ImporterException.malformedUrl(e.getMessage());
            }

            guideSet = aImporter.process(baseUrl, aSingle);
        } catch (ImporterException e)
        {
            processException(e);
        }

        if (guideSet != null)
        {
            final OPMLGuide[] aGuides = guideSet.getGuides();
            final URL aBaseUrl = baseUrl;

            // Do actual addition of data in EDT
            SwingUtilities.invokeLater(new Runnable()
            {
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.