Class PolicyReader
- java.lang.Object
-
- gov.nasa.pds.harvest.search.policy.PolicyReader
-
public class PolicyReader extends Object
Class to read the Harvest Policy file.- Author:
- mcayanan
-
-
Field Summary
Fields Modifier and Type Field Description static String
POLICY_PACKAGE
static String
POLICY_SCHEMA
-
Constructor Summary
Constructors Constructor Description PolicyReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Policy
unmarshall(File policyXML)
static Policy
unmarshall(URL policyXML)
static Policy
unmarshall(StreamSource policyXML)
-
-
-
Field Detail
-
POLICY_PACKAGE
public static final String POLICY_PACKAGE
- See Also:
- Constant Field Values
-
POLICY_SCHEMA
public static final String POLICY_SCHEMA
- See Also:
- Constant Field Values
-
-
Method Detail
-
unmarshall
public static Policy unmarshall(URL policyXML) throws SAXParseException, javax.xml.bind.JAXBException, SAXException
- Throws:
SAXParseException
javax.xml.bind.JAXBException
SAXException
-
unmarshall
public static Policy unmarshall(File policyXML) throws SAXParseException, javax.xml.bind.JAXBException, SAXException
- Throws:
SAXParseException
javax.xml.bind.JAXBException
SAXException
-
unmarshall
public static Policy unmarshall(StreamSource policyXML) throws javax.xml.bind.JAXBException, SAXException, SAXParseException
- Throws:
javax.xml.bind.JAXBException
SAXException
SAXParseException
-
-