org.knime.core.node.port.pmml
Class PMMLPortObjectSpecSerializer

java.lang.Object
  extended by org.knime.core.node.port.PortObjectSpec.PortObjectSpecSerializer<PMMLPortObjectSpec>
      extended by org.knime.core.node.port.pmml.PMMLPortObjectSpecSerializer
All Implemented Interfaces:
SerializerMethodLoader.Serializer<PMMLPortObjectSpec>

public class PMMLPortObjectSpecSerializer
extends PortObjectSpec.PortObjectSpecSerializer<PMMLPortObjectSpec>

Author:
Fabian Dill, University of Konstanz

Constructor Summary
PMMLPortObjectSpecSerializer()
           
 
Method Summary
 PMMLPortObjectSpec loadPortObjectSpec(PortObjectSpecZipInputStream in)
          Load a specification from an input stream.
 void savePortObjectSpec(PMMLPortObjectSpec portObjectSpec, PortObjectSpecZipOutputStream out)
          Saves the port specification to an output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMMLPortObjectSpecSerializer

public PMMLPortObjectSpecSerializer()
Method Detail

loadPortObjectSpec

public PMMLPortObjectSpec loadPortObjectSpec(PortObjectSpecZipInputStream in)
                                      throws IOException
Load a specification from an input stream.

Specified by:
loadPortObjectSpec in class PortObjectSpec.PortObjectSpecSerializer<PMMLPortObjectSpec>
Parameters:
in - Where to load from
Returns:
The restored object.
Throws:
IOException - If that fails for IO problems.

savePortObjectSpec

public void savePortObjectSpec(PMMLPortObjectSpec portObjectSpec,
                               PortObjectSpecZipOutputStream out)
                        throws IOException
Saves the port specification to an output stream.

Specified by:
savePortObjectSpec in class PortObjectSpec.PortObjectSpecSerializer<PMMLPortObjectSpec>
Parameters:
portObjectSpec - The spec to save.
out - Where to save to
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.