public abstract class Manifests
extends java.lang.Object
| Constructor and Description |
|---|
Manifests() |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonNode |
getJson(java.io.File file,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Acquire a
JsonNode from the given json file. |
protected com.fasterxml.jackson.databind.JsonNode |
getJson(java.io.InputStream inputStream,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Acquire a
JsonNode from the given json inputstream. |
protected com.fasterxml.jackson.databind.JsonNode |
getJson(java.net.URL url,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Acquire a
JsonNode from the given URL. |
org.w3c.dom.Document |
getXml(java.io.File manifest)
Reads the file into a
Document and Node.normalize() it. |
org.w3c.dom.Document |
getXml(java.io.InputStream manifest)
Reads the inputstream into a
Document and Node.normalize() it. |
public org.w3c.dom.Document getXml(java.io.File manifest)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
Document and Node.normalize() it.manifest - The xml-file to parse into a Document.javax.xml.parsers.ParserConfigurationException - indicates a serious configuration error.java.io.IOException - if any IO errors occur.org.xml.sax.SAXException - if any parse errors occur.public org.w3c.dom.Document getXml(java.io.InputStream manifest)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
Document and Node.normalize() it.manifest - The xml-inputstream to parse into a Document.javax.xml.parsers.ParserConfigurationException - indicates a serious configuration error.java.io.IOException - if any IO errors occur.org.xml.sax.SAXException - if any parse errors occur.protected com.fasterxml.jackson.databind.JsonNode getJson(java.io.InputStream inputStream,
com.fasterxml.jackson.databind.ObjectMapper mapper)
throws java.io.IOException
JsonNode from the given json inputstream.inputStream - The inputstream to read.mapper - ObjectMapper for reading and parsing JSON.java.io.IOException - when the file could not be parsed/read into a JsonNode.protected com.fasterxml.jackson.databind.JsonNode getJson(java.io.File file,
com.fasterxml.jackson.databind.ObjectMapper mapper)
throws java.io.IOException
JsonNode from the given json file.file - The file to read.mapper - ObjectMapper for reading and parsing JSON.java.io.IOException - when the file could not be parsed/read into a JsonNode.protected com.fasterxml.jackson.databind.JsonNode getJson(java.net.URL url,
com.fasterxml.jackson.databind.ObjectMapper mapper)
throws java.io.IOException
JsonNode from the given URL.url - URL to the data which contains your JSON.mapper - ObjectMapper for reading and parsing JSON.java.io.IOException - when the file could not be parsed/read into a JsonNode.