OpenOffice.org
XMerge API

org.openoffice.xmerge.util.registry
Class ConverterInfoReader

java.lang.Object
  |
  +--org.openoffice.xmerge.util.registry.ConverterInfoReader

public class ConverterInfoReader
extends java.lang.Object

The ConverterInfoReader pulls a META-INF/converter.xml file out of a jar file and parses it, providing access to this information in a Vector of ConverterInfo objects.


Constructor Summary
ConverterInfoReader(java.lang.String jar, boolean shouldvalidate)
          Constructor.
 
Method Summary
 java.util.Enumeration getConverterInfoEnumeration()
          Returns an Enumeration of ConverterInfo objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterInfoReader

public ConverterInfoReader(java.lang.String jar,
                           boolean shouldvalidate)
                    throws java.io.IOException,
                           javax.xml.parsers.ParserConfigurationException,
                           org.xml.sax.SAXException,
                           RegistryException
Constructor. A jar file is passed in. The jar file is parsed and the Vector of ConverterInfo objects is built.
Parameters:
jar - The URL of the jar file to process.
shouldvalidate - Boolean to enable or disable xml validation.
Throws:
java.io.IOException - If the jar file cannot be read or if the META-INF/converter.xml can not be read in the jar file.
javax.xml.parsers.ParserConfigurationException - If the DocumentBuilder can not be built.
org.xml.sax.SAXException - If the converter.xml file can not be parsed.
RegistryException - If the ConverterFactory implementation of a plug-in cannot be loaded.
Method Detail

getConverterInfoEnumeration

public java.util.Enumeration getConverterInfoEnumeration()
Returns an Enumeration of ConverterInfo objects.
Returns:
An Enumeration of ConverterInfo objects.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org