Package com.salas.bbutilities.opml

Examples of com.salas.bbutilities.opml.Importer


        throws ServerServiceException, ImporterException
    {
        String opml = ServerService.syncRestore(email, password);

        // 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


     *
     * @param dialog dialog box.
     */
    private void processImport(ImportGuidesDialog dialog)
    {
        final Importer importer;
        final String url;

        boolean fromURL = dialog.isFromURL();
        final boolean isSingle = dialog.isSingleMode();
        final boolean isAppending = dialog.isAppendingMode();
View Full Code Here

        assertFalse("Old backup file is left: ", backupFiles[0].equals(firstBackupFileName));
    }

    private static OPMLGuide[] restoreBackup(File aBackupFile)
    {
        Importer importer = new Importer();
        OPMLGuide[] guides = new OPMLGuide[0];

        try
        {
            guides = importer.process(aBackupFile.toURL(), false).getGuides();
        } catch (Exception e)
        {
            e.printStackTrace();
            fail("Failed to restore backup OPML.");
        }
View Full Code Here

TOP

Related Classes of com.salas.bbutilities.opml.Importer

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.