/** * Creates a new up-converter using a simple internal cache. * <p> * Use this constructor if you don't use XSLT yourself. In this case, you'll want your * instance of this class to be reused as much as possible to get the benefits of caching. */ public MaximaMathmlFixer() { this(new SimpleStylesheetCache()); }
public AsciiMathHelper() { this(new SimpleStylesheetCache()); }
public MaximaMathmlUpConverter() { this(new SimpleStylesheetCache()); }
/** * Creates a new {@link SnuggleEngine} using a very simple internal cache for any * XSLT stylesheets required that simply stores them internally for the lifetime * of the engine. The {@link DefaultTransformerFactoryChooser} is used to choose * XSLT implementations. * <p> * This will be fine in most cases. If you want more control over * this, consider the alternative constructor. */ public SnuggleEngine() { this(DefaultTransformerFactoryChooser.getInstance(), new SimpleStylesheetCache()); }
/** * Creates a new {@link SnuggleEngine} using a very simple internal cache for any * XSLT stylesheets required that simply stores them internally for the lifetime * of the engine. The {@link DefaultTransformerFactoryChooser} is used to choose * XSLT implementations. * <p> * This will be fine in most cases. If you want more control over * this, consider the alternative constructor. */ public SnuggleEngine() { this(DefaultTransformerFactoryChooser.getInstance(), new SimpleStylesheetCache()); }
/** * Creates a new {@link SnuggleEngine} using a very simple internal cache for any * XSLT stylesheets required that simply stores them internally for the lifetime * of the engine. The {@link DefaultTransformerFactoryChooser} is used to choose * XSLT implementations. * <p> * This will be fine in most cases. If you want more control over * this, consider the alternative constructor. */ public SnuggleEngine() { this(DefaultTransformerFactoryChooser.getInstance(), new SimpleStylesheetCache()); }
public SimpleQtiMaximaProcessManager(final MaximaConfiguration maximaConfiguration) { this.maximaProcessLauncher = new MaximaProcessLauncher(maximaConfiguration); this.stylesheetCache = new SimpleStylesheetCache(); }
public static void main(String[] args) throws Exception { QtiMaximaProcessPoolManager manager = new QtiMaximaProcessPoolManager(); manager.setMaximaConfiguration(JacomaxSimpleConfigurator.configure()); manager.setStylesheetCache(new SimpleStylesheetCache()); manager.init(); QtiMaximaProcess session = manager.obtainProcess(); System.out.println("Math 1: " + session.executeMathOutput("1", false)); session.reset(); System.out.println("Math 2: " + session.executeMathOutput("1", false)); manager.returnProcess(session); manager.shutdown(); } }