Package info.bliki.wiki.filter

Examples of info.bliki.wiki.filter.PlainTextConverter


      APIWikiModel wikiModel = new APIWikiModel(user, db, "${image}", "${title}", null);
      DocumentCreator creator = new DocumentCreator(wikiModel, user, listOfTitleStrings);
      creator.setHeader("");
      creator.setFooter("");
      wikiModel.setUp();
      creator.renderToFile(new PlainTextConverter(true), generatedTXTFilename);
      // StringBuilder buffer = new StringBuilder();
      // creator.render(new PlainTextConverter(true), buffer);
      // System.out.println(buffer.toString());
    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here


    public void actionPerformed(java.awt.event.ActionEvent event) {
      String strData = input.getText();
      WikiModel wikiModel = new WikiModel(Configuration.DEFAULT_CONFIGURATION, Locale.ENGLISH, "${image}", "${title}");
      wikiModel.setUp();
      try {
      String result = wikiModel.render(new PlainTextConverter(), strData, false);
      output.setText(result);
      } finally {
        wikiModel.tearDown();
      }
    }
View Full Code Here

      APIWikiModel wikiModel = new APIWikiModel(user, db, "${image}", "${title}", imageDirectory);
      DocumentCreator creator = new DocumentCreator(wikiModel, user, listOfTitleStrings);
//      creator.setHeader(HTMLConstants.HTML_HEADER1 + HTMLConstants.CSS_SCREEN_STYLE + HTMLConstants.HTML_HEADER2);
//      creator.setFooter(HTMLConstants.HTML_FOOTER);
      wikiModel.setUp();
      creator.renderToFile(new PlainTextConverter(), mainDirectory + titleURL + ".txt");

    } catch (IOException e) {
      e.printStackTrace();
    } catch (Exception e1) {
      e1.printStackTrace();
View Full Code Here

        }
      } else if (convertType.equals("wiki2plain")) {
        WikiModel wikiModel = new WikiModel(Configuration.DEFAULT_CONFIGURATION, Locale.ENGLISH, "${image}", "${title}");
        wikiModel.setUp();
        try {
          result = wikiModel.render(new PlainTextConverter(), expression);
        } finally {
          wikiModel.tearDown();
        }
      } else if (convertType.equals("googlecode")) {
        HTML2WikiConverter conv = new HTML2WikiConverter();
View Full Code Here

        "test 3\n" +
        "hello\n" +
        "\n" +
        "\n" +
        "test 4\n" +
        "", wikiModel.render(new PlainTextConverter(), LIST3));
  }
View Full Code Here

        "|}\n" +
        "</nowiki>\n" +
        "What it looks like in your browser\n" +
        "\n" +
        "\n" +
        "", wikiModel.render(new PlainTextConverter(), TEST3));
  }
View Full Code Here

        "     \n" +
        "\n" +
        "\n" +
        " \n" +
        "\n" +
        " ", wikiModel.render(new PlainTextConverter(), TEST));
  }
View Full Code Here

    public void actionPerformed(java.awt.event.ActionEvent event) {
      String strData = input.getText();
      WikiModel wikiModel = new WikiModel(Configuration.DEFAULT_CONFIGURATION, Locale.ENGLISH, "${image}", "${title}");
      wikiModel.setUp();
      try {
      String result = wikiModel.render(new PlainTextConverter(), strData, false);
      output.setText(result);
      } finally {
        wikiModel.tearDown();
      }
    }
View Full Code Here

        public void actionPerformed(java.awt.event.ActionEvent event) {
            String strData = input.getText();
            WikiModel wikiModel = new WikiModel(Configuration.DEFAULT_CONFIGURATION, Locale.ENGLISH, "${image}", "${title}");
            wikiModel.setUp();
      try {
            String result = wikiModel.render(new PlainTextConverter(), strData, false);
            output.setText(result);
      } finally {
        wikiModel.tearDown();
      }
        }
View Full Code Here

  /**
   * Creates an empty <code>WikipediaPage</code> object.
   */
  public WikipediaPage() {
    wikiModel = new WikiModel("", "");
    textConverter = new PlainTextConverter();
  }
View Full Code Here

TOP

Related Classes of info.bliki.wiki.filter.PlainTextConverter

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.