net.sourceforge.jeuclid.converter
Class Processor

java.lang.Object
  extended by net.sourceforge.jeuclid.converter.Processor

public final class Processor
extends Object

Contains 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
protected Processor()
          Default constructor.
 
Method Summary
static Processor getInstance()
          Retrieve the processor singleton object.
static Processor getProcessor()
          Deprecated. use getInstance() instead.
 void process(Source inputSource, Result result)
          Pre-process a .fo file.
 void process(Source inputSource, Result result, LayoutContext context)
          Pre-process a .fo file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Processor

protected Processor()
Default constructor.

Method Detail

getInstance

public static Processor getInstance()
Retrieve the processor singleton object.

Returns:
the Processor.

getProcessor

@Deprecated
public static Processor getProcessor()
                              throws TransformerException
Deprecated. use getInstance() instead.

use getInstance() instead.

Returns:
see getInstance()
Throws:
TransformerException - see getInstance()

process

public void process(Source inputSource,
                    Result result,
                    LayoutContext context)
             throws TransformerException
Pre-process a .fo file.

Parameters:
inputSource - Input File
result - Output File
context - LayoutContext.
Throws:
TransformerException - an error occurred during the processing.

process

public void process(Source inputSource,
                    Result result)
             throws TransformerException
Pre-process a .fo file.

Parameters:
inputSource - Input File
result - Output File
Throws:
TransformerException - an error occurred during the processing.


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.