| Constructor and Description |
|---|
ComponentInfoReader() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentInfo |
parseComponentInfo(File compInfoFile)
Read a component-info.xml file into a ComponentInfo object.
|
static ComponentInfo |
parseComponentInfo(InputStream compInfoIS)
Read a component-info.xml from an input stream into a ComponentInfo object.
|
static void |
verifyCompInfo(InputStream compInfo)
Verify a component-info.xml file using the xsd.
|
static void |
verifyCompInfo(String compInfoFilePath)
Verify a component-info.xml file using the xsd.
|
public static ComponentInfo parseComponentInfo(File compInfoFile) throws IOException, ParserConfigurationException, SAXException
compInfoFile - IOExceptionParserConfigurationExceptionSAXExceptionpublic static ComponentInfo parseComponentInfo(InputStream compInfoIS) throws IOException, ParserConfigurationException, SAXException
compInfoFile - IOExceptionParserConfigurationExceptionSAXExceptionpublic static void verifyCompInfo(String compInfoFilePath) throws SAXException, FileNotFoundException
compInfoFilePath - Path to the component-info.xml to be verified.SAXExceptionFileNotFoundExceptionpublic static void verifyCompInfo(InputStream compInfo) throws SAXException
compInfoFilePath - Path to the component-info.xml to be verified.SAXExceptionCopyright © 2007-2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.