T- class of the object to save or load.
public abstract static class PortObject.PortObjectSerializer<T extends PortObject> extends Object implements SerializerMethodLoader.Serializer<T>
T. See description of class
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the port object class that this serializer reads and writes.
Load a portObject from an input stream.
Saves the portObject to an output stream.
public abstract void savePortObject(T portObject, PortObjectZipOutputStream out, ExecutionMonitor exec) throws IOException, CanceledExecutionException
PortObjectSpecassociated with the port object as the framework will save both in different places and will provide the spec when
PortObjectZipInputStream, PortObjectSpec, ExecutionMonitor)is called.
public abstract T loadPortObject(PortObjectZipInputStream in, PortObjectSpec spec, ExecutionMonitor exec) throws IOException, CanceledExecutionException
in- Where to load from
spec- 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.
IOException- If that fails for IO problems.
CanceledExecutionException- If canceled.
KNIME GmbH, Konstanz, Germany
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.