Package com.admc.jcreole

Examples of com.admc.jcreole.JCreole


      // The JCreole.parseCreole method will throw an exception if it
      // has to parse the empty string!
      return "";
    }
    StringBuilder sb = new StringBuilder(from);
    JCreole jcreole = new JCreole();
    EnumSet<JCreolePrivilege> ps = jcreole.getPrivileges();
    ps.add(JCreolePrivilege.ABSLINK);
    jcreole.setPrivileges(ps);
    String to = "";
    try {
      //CreoleScanner scanner = CreoleScanner.newCreoleScanner(sb, true);
      //to = parser.parse(scanner).toString();
      to = jcreole.parseCreole(sb);
    } catch (Exception ex) {
      //System.out.println("This is the creole we got: >>>>\n"+sb+"\n<<<<");
      //System.out.println("This is the original string we got: >>>>\n"+from+"\n<<<<");
      throw new GateRuntimeException("Could not convert creole wiki format to html: "+from,ex);
    }
View Full Code Here

TOP

Related Classes of com.admc.jcreole.JCreole

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.