Package org.jpmml.model
Class PMMLUtil
- java.lang.Object
-
- org.jpmml.model.PMMLUtil
-
public class PMMLUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PMMLload(java.lang.ClassLoader clazzLoader)static PMMLload(java.net.URL url)static voidmarshal(PMML pmml, java.io.OutputStream os)static PMMLunmarshal(java.io.InputStream is)
-
-
-
Method Detail
-
load
public static PMML load(java.net.URL url) throws java.io.IOException
- Parameters:
url- A pointer to a PMML service provider JAR file.- Throws:
java.io.IOException- See Also:
ServiceLoaderUtil.load(Class, ClassLoader)
-
load
public static PMML load(java.lang.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(java.io.InputStream is) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, jakarta.xml.bind.JAXBException
- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjakarta.xml.bind.JAXBException
-
marshal
public static void marshal(PMML pmml, java.io.OutputStream os) throws jakarta.xml.bind.JAXBException
- Throws:
jakarta.xml.bind.JAXBException
-
-