|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.converter.Converter
public final class Converter
Generic converter which uses the registry to do its conversions.
| Method Summary | |
|---|---|
Dimension |
convert(File inFile,
File outFile,
Map<ParameterKey,String> params)
Converts an existing file from MathML or ODF to the given type. |
Dimension |
convert(File inFile,
File outFile,
String outFileType)
Converts an existing file from MathML or ODF to the given type. |
Dimension |
convert(Node doc,
File outFile,
Map<ParameterKey,String> params)
Converts an existing file from MathML or ODF to the given type. |
Dimension |
convert(Node doc,
OutputStream outStream,
Map<ParameterKey,String> params)
Converts an existing file from MathML or ODF to the given type. |
static Converter |
getConverter()
Retrieve an instance of the converter singleton class. |
BufferedImage |
render(MathBase base)
Renders a document into an image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Converter getConverter()
public Dimension convert(File inFile,
File outFile,
String outFileType)
throws IOException
inFile - input file.outFile - output file.outFileType - mimetype for the output file.
IOException - if an I/O error occurred during read or write.
public Dimension convert(File inFile,
File outFile,
Map<ParameterKey,String> params)
throws IOException
inFile - input file.outFile - output file.params - rendering parameters.
IOException - if an I/O error occurred during read or write.
public Dimension convert(Node doc,
File outFile,
Map<ParameterKey,String> params)
throws IOException
doc - input document. See
DOMBuilder.DOMBuilder(Node, MathBase)
for the list of valid node types.outFile - output file.params - parameter set to use for conversion.
IOException - if an I/O error occurred during read or write.
public Dimension convert(Node doc,
OutputStream outStream,
Map<ParameterKey,String> params)
throws IOException
doc - input document. See
DOMBuilder.DOMBuilder(Node, MathBase)
for the list of valid node types.outStream - output stream.params - parameter set to use for conversion.
IOException - if an I/O error occurred during read or write.
public BufferedImage render(MathBase base)
throws IOException
base - MathBase containing the MathML document and its rendering
parameters.
IOException - if an I/O error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||