|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.port.PortUtil
public final class PortUtil
Contains framework methods that are used to persist or read
PortObject
and PortObjectSpec
objects.
Methods in this class are not meant to be used by node developers. This class and its methods may change in future versions.
Method Summary | ||
---|---|---|
static
|
getPortObjectSerializer(Class<T> cl)
Get the globally used serializer for PortObject objects
represented by the class argument. |
|
static
|
getPortObjectSpecSerializer(Class<T> cl)
Get the globally used serializer for PortObjectSpec objects
represented by the class argument. |
|
static PortObjectSpecZipInputStream |
getPortObjectSpecZipInputStream(InputStream in)
|
|
static PortObjectSpecZipOutputStream |
getPortObjectSpecZipOutputStream(OutputStream in)
|
|
static PortObjectZipInputStream |
getPortObjectZipInputStream(InputStream in)
|
|
static PortObjectZipOutputStream |
getPortObjectZipOutputStream(OutputStream in)
|
|
static PortObject |
readObjectFromFile(File file,
ExecutionMonitor exec)
|
|
static PortObjectSpec |
readObjectSpecFromFile(File file)
|
|
static void |
writeObjectToFile(PortObject po,
File file,
ExecutionMonitor exec)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends PortObjectSpec> PortObjectSpec.PortObjectSpecSerializer<T> getPortObjectSpecSerializer(Class<T> cl)
PortObjectSpec
objects
represented by the class argument.
T
- The specific PortObjectSpec class of interest.cl
- Class argument.
public static <T extends PortObject> PortObject.PortObjectSerializer<T> getPortObjectSerializer(Class<T> cl)
PortObject
objects
represented by the class argument.
T
- The specific PortObject class of interest.cl
- Class argument.
public static PortObjectSpecZipOutputStream getPortObjectSpecZipOutputStream(OutputStream in) throws IOException
IOException
public static PortObjectZipOutputStream getPortObjectZipOutputStream(OutputStream in) throws IOException
IOException
public static PortObjectSpecZipInputStream getPortObjectSpecZipInputStream(InputStream in) throws IOException
IOException
public static PortObjectZipInputStream getPortObjectZipInputStream(InputStream in) throws IOException
IOException
public static void writeObjectToFile(PortObject po, File file, ExecutionMonitor exec) throws IOException, CanceledExecutionException
IOException
CanceledExecutionException
public static PortObject readObjectFromFile(File file, ExecutionMonitor exec) throws IOException, CanceledExecutionException
IOException
CanceledExecutionException
public static PortObjectSpec readObjectSpecFromFile(File file) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |