org.knime.core.node.port
Class PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec>
java.lang.Object
org.knime.core.node.port.PortObjectSpec.PortObjectSpecSerializer<T>
- Type Parameters:
T
- class of the object to save or load.
- All Implemented Interfaces:
- SerializerMethodLoader.Serializer<T>
- Direct Known Subclasses:
- PMMLPortObjectSpecSerializer
- Enclosing interface:
- PortObjectSpec
public abstract static class PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec>
- extends Object
- implements SerializerMethodLoader.Serializer<T>
Factory class that's used for writing and loading objects of class
denoted by T
. See description of class
PortObjectSpec
for details.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortObjectSpec.PortObjectSpecSerializer
public PortObjectSpec.PortObjectSpecSerializer()
savePortObjectSpec
public abstract void savePortObjectSpec(T portObjectSpec,
PortObjectSpecZipOutputStream out)
throws IOException
- Saves the port specification to an output stream.
- Parameters:
portObjectSpec
- The spec to save.out
- Where to save to
- Throws:
IOException
- If that fails for IO problems.
loadPortObjectSpec
public abstract T loadPortObjectSpec(PortObjectSpecZipInputStream in)
throws IOException
- Load a specification from an input stream.
- Parameters:
in
- Where to load from
- Returns:
- The restored object.
- Throws:
IOException
- If that fails for IO problems.
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.