jscl.editor.Content Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meditor Show documentation
Show all versions of meditor Show documentation
java symbolic computing library and mathematical editor
The newest version!
package jscl.editor;
import java.io.Reader;
import java.io.StringReader;
import javax.xml.transform.TransformerConfigurationException;
import jscl.converter.Transformer;
public class Content extends Transformer {
protected Content() throws TransformerConfigurationException {
super("/net/sourceforge/jeuclid/content/mathmlc2p.xsl");
}
@Override
protected String transform(final Reader reader) {
return super.transform(reader).replaceAll("\u2148", "i");
}
protected String c2p(final String document) {
return transform(new StringReader(document));
}
}