Class RaParser

java.lang.Object
org.jboss.jca.common.metadata.common.AbstractParser
org.jboss.jca.common.metadata.spec.RaParser
All Implemented Interfaces:
MetadataParser<Connector>

public class RaParser extends AbstractParser implements MetadataParser<Connector>
A RaParser.
Author:
Stefano Maestri
  • Constructor Details

    • RaParser

      public RaParser()
  • Method Details

    • parse

      public Connector parse(InputStream xmlInputStream) throws Exception
      Description copied from interface: MetadataParser
      Parse the xml file and return the JCAMetaData for which the concrete parser is designed. Note that is responsibility of the client to open and close the stream
      Specified by:
      parse in interface MetadataParser<Connector>
      Parameters:
      xmlInputStream - an InputStrema opened on the xml file to parse
      Returns:
      The metadata
      Throws:
      Exception - Thrown if an error occurs
    • parse

      public Connector parse(XMLStreamReader reader) throws Exception
      Description copied from interface: MetadataParser
      Parse the xml file and return the JCAMetaData for which the concrete parser is designed. Note that is responsibility of the client to open and close the stream
      Specified by:
      parse in interface MetadataParser<Connector>
      Parameters:
      reader - an XMLStreamReader opened on the xml file to parse
      Returns:
      The metadata
      Throws:
      Exception - Thrown if an error occurs