Class Processor
- java.lang.Object
-
- net.sourceforge.jeuclid.converter.Processor
-
public final class Processor extends java.lang.ObjectContains the actual processing routines.To use this class obtain an instance of the Processor singleton instance. Then use the
process(Source, Result)function to process your Document.This will replace all occurrences of MathML within fo:instream tags by the equivalent SVG code. It will also add a baseline-shift attribute so that the formula is in line with the rest of the text.
- Version:
- $Revision: 5a7becda9147 $
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessor()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ProcessorgetInstance()Retrieve the processor singleton object.static ProcessorgetProcessor()Deprecated.usegetInstance()instead.voidprocess(javax.xml.transform.Source inputSource, javax.xml.transform.Result result)Pre-process a .fo file.voidprocess(javax.xml.transform.Source inputSource, javax.xml.transform.Result result, LayoutContext context)Pre-process a .fo file.
-
-
-
Method Detail
-
getInstance
public static Processor getInstance()
Retrieve the processor singleton object.- Returns:
- the Processor.
-
getProcessor
@Deprecated public static Processor getProcessor() throws javax.xml.transform.TransformerException
Deprecated.usegetInstance()instead.usegetInstance()instead.- Returns:
- see
getInstance() - Throws:
javax.xml.transform.TransformerException- seegetInstance()
-
process
public void process(javax.xml.transform.Source inputSource, javax.xml.transform.Result result, LayoutContext context) throws javax.xml.transform.TransformerExceptionPre-process a .fo file.- Parameters:
inputSource- Input Fileresult- Output Filecontext- LayoutContext.- Throws:
javax.xml.transform.TransformerException- an error occurred during the processing.
-
process
public void process(javax.xml.transform.Source inputSource, javax.xml.transform.Result result) throws javax.xml.transform.TransformerExceptionPre-process a .fo file.- Parameters:
inputSource- Input Fileresult- Output File- Throws:
javax.xml.transform.TransformerException- an error occurred during the processing.
-
-