Package org.jpmml.model
Class PMMLUtil
- java.lang.Object
-
- org.jpmml.model.PMMLUtil
-
public class PMMLUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PMMLload(ClassLoader clazzLoader)static PMMLload(URL url)static voidmarshal(PMML pmml, OutputStream os)static PMMLunmarshal(InputStream is)
-
-
-
Method Detail
-
load
public static PMML load(URL url) throws IOException
- Parameters:
url- A pointer to a PMML service provider JAR file.- Throws:
IOException- See Also:
ServiceLoaderUtil.load(Class, ClassLoader)
-
load
public static PMML load(ClassLoader clazzLoader)
- Parameters:
clazzLoader- A class loader holding a PMML service provider configuration, classes and resources.- See Also:
ServiceLoaderUtil.load(Class, ClassLoader)
-
unmarshal
public static PMML unmarshal(InputStream is) throws ParserConfigurationException, SAXException, jakarta.xml.bind.JAXBException
- Throws:
ParserConfigurationExceptionSAXExceptionjakarta.xml.bind.JAXBException
-
marshal
public static void marshal(PMML pmml, OutputStream os) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
-
-