public class ArtifactTools
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ArtifactTools.ArtifactMetaDataHandler |
Constructor and Description |
---|
ArtifactTools() |
Modifier and Type | Method and Description |
---|---|
static java.nio.file.Path |
generateXML(ArtifactMetaData artifactMetaData)
Generates a temporary file that contains ArtifactMetaData XML which includes all of the artifacts in the
artifactMetaData given.
|
static ArtifactMetaData |
parseArtifactMetaData(java.nio.file.Path file)
Parses the MetaData from the given Savant .amd file.
|
public static java.nio.file.Path generateXML(ArtifactMetaData artifactMetaData) throws java.io.IOException
artifactMetaData
- The MetaData object to serialize to XML.java.io.IOException
- If the temp could not be created or the XML could not be written.public static ArtifactMetaData parseArtifactMetaData(java.nio.file.Path file) throws org.xml.sax.SAXException, VersionException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
file
- The File to read the XML MetaData information from.org.xml.sax.SAXException
- If the SAX parsing failed.VersionException
- If any of the version strings could not be parsed.javax.xml.parsers.ParserConfigurationException
- If the parser configuration in the JDK is invalid.java.io.IOException
- If the parse operation failed because of an IO error.