|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
java.lang.Objectcom.stylusstudio.converter.ConverterFactory
A factory class which is used to create new Converter
objects.
Converter objects are used to convert files to and from XML.
Method Summary | |
Configuration |
getConfiguration()
Get the Configuration object for this ConverterFactory. |
Converter |
newConvertFromXML(String conversion)
Create a new Converter object, using an adapter URL, to convert XML files to non-XML. |
Converter |
newConvertToXML(StreamSource conversion)
Create a new Converter object, using a .conv file, to convert non-XML files to XML. |
Converter |
newConvertToXML(String conversion)
Create a new Converter object, using an adapter URL, to convert non-XML files to XML. |
static ConverterFactory |
newInstance()
Create a new instance of the ConverterFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ConverterFactory newInstance()
public Converter newConvertToXML(String conversion) throws ConverterException
conversion
- The conversion to be performed. The conversion is supplied as a
Stylus Studio adapter: URL without any ?datafile suffix.
ConverterException
public Converter newConvertToXML(StreamSource conversion) throws ConverterException
conversion
- The conversion which will be performed. The conversion is supplied
as a StreamSource
. The StreamSource must contain one
or more of the following to identify the .conv file used for the conversion: SystemId,
InputStream, or Reader.
ConverterException
public Converter newConvertFromXML(String conversion) throws ConverterException
conversion
- The conversion to be performed. The conversion is supplied as a
Stylus Studio adapter: URL without any ?datafile suffix.
ConverterException
public Configuration getConfiguration()
The Configuration object allows the application to specify options that affect the conversion.
This method returns a reference to the Configuration object, not a copy. Changes affect all Converter objects subsequently created from this ConverterFactory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |