org.knime.core.node.port.pmml
Class PMMLPortObjectSerializer
java.lang.Object
org.knime.core.node.port.PortObject.PortObjectSerializer<PMMLPortObject>
org.knime.core.node.port.pmml.PMMLPortObjectSerializer
- All Implemented Interfaces:
- SerializerMethodLoader.Serializer<PMMLPortObject>
public final class PMMLPortObjectSerializer
- extends PortObject.PortObjectSerializer<PMMLPortObject>
- Author:
- Fabian Dill, University of Konstanz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PMMLPortObjectSerializer
public PMMLPortObjectSerializer()
loadPortObject
public PMMLPortObject loadPortObject(PortObjectZipInputStream in,
PortObjectSpec spec,
ExecutionMonitor exec)
throws IOException,
CanceledExecutionException
- Load a portObject from an input stream.
- Specified by:
loadPortObject
in class PortObject.PortObjectSerializer<PMMLPortObject>
- Parameters:
in
- Where to load fromspec
- The spec that was associated with the object. It can
safely be cast to the expected PortObjectSpec class.exec
- To report progress to and to check for cancelation.
- Returns:
- The restored object.
- Throws:
IOException
- If that fails for IO problems.
CanceledExecutionException
- If canceled.
savePortObject
public void savePortObject(PMMLPortObject portObject,
PortObjectZipOutputStream out,
ExecutionMonitor exec)
throws IOException,
CanceledExecutionException
- Saves the portObject to an output stream. There is no need
to also save the
PortObjectSpec
associated with the port
object as the framework will save both in different places and
will provide the spec when PortObjectZipInputStream, PortObjectSpec, ExecutionMonitor)
is called.
- Specified by:
savePortObject
in class PortObject.PortObjectSerializer<PMMLPortObject>
- Parameters:
portObject
- The object to save.out
- Where to save toexec
- To report progress to and to check for cancelation.
- Throws:
IOException
- If that fails for IO problems.
CanceledExecutionException
- If canceled.
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.