|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.util.OMconverters.OMConvertByStylesheet
public class OMConvertByStylesheet
Class OMConvertByStylesheet
converter made for converting OMOBJ to other standards for mathematics (e.g. POST) using given stylesheets
| Constructor Summary | |
|---|---|
OMConvertByStylesheet(String stylesheetName)
instantiates the Converter with use of org.activemath.config.Manager
for finding and loading the stylesheet |
|
OMConvertByStylesheet(String baseURI,
String stylesheetName,
Hashtable params)
instantiates the Converter ( org.activemath.config.Manager is not used therefore) |
|
| Method Summary | |
|---|---|
String |
convert(InputStream inputStream)
convert from an inputstream |
String |
convert(String stringToConvert)
convert from an inputstring |
String |
convertFromMBase(MBaseRef mbaseRef,
MBaseID id)
convert from MBase content |
void |
convertStreams(InputStream input,
OutputStream output)
converts from one stream to another one |
static void |
main(String[] args)
main method for testing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OMConvertByStylesheet(String baseURI,
String stylesheetName,
Hashtable params)
throws OMConvertException
org.activemath.config.Manager is not used therefore)
baseURI - baseURL where to find the stylesheetsstylesheetName - Name of the stylesheet used for conversionparam - parameter for stylesheet transformation
throws - OMConvertException
if the constructor was not able to load the stylesheet
OMConvertException
public OMConvertByStylesheet(String stylesheetName)
throws OMConvertException
org.activemath.config.Manager
for finding and loading the stylesheet
stylesheetName - Name of the stylesheet used for conversion
throws - OMConvertException
if the constructor was not able to load the stylesheet
OMConvertException| Method Detail |
|---|
public void convertStreams(InputStream input,
OutputStream output)
throws OMConvertException
convertStreams in interface OMConverterinput - the inputstream to convert fromoutput - the outputstream to convert to
throws - OMConvertException
if the conversion failed
OMConvertException
public String convert(InputStream inputStream)
throws OMConvertException
convert in interface OMConverterinputStream - the inputstream to convert from
String
throws - OMConvertException
if the conversion failed
OMConvertException
public String convert(String stringToConvert)
throws OMConvertException
convert in interface OMConverterstringToConvert - the string to convert from
String
throws - OMConvertException
if the conversion failed
OMConvertException
public String convertFromMBase(MBaseRef mbaseRef,
MBaseID id)
throws OMConvertException
convertFromMBase in interface OMConverterid - Identification of the content from MBase to convertmbaseRef - the reference to an existing MBase
String
throws - OMConvertException
if the conversion failed
OMConvertExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||