org.knime.core.data.container
Class PriorityGlobalObjectInputStream
java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.knime.core.eclipseUtil.GlobalObjectInputStream
org.knime.core.data.container.PriorityGlobalObjectInputStream
- All Implemented Interfaces:
- Closeable, DataInput, ObjectInput, ObjectStreamConstants
class PriorityGlobalObjectInputStream
- extends GlobalObjectInputStream
Object input stream, which can be used to load classes using a given
preferred ClassLoader. This class loader is typically the bundle
class loader of the DataCell to be read next from the stream.
- Author:
- Bernd Wiswedel, University of Konstanz
Fields inherited from interface java.io.ObjectStreamConstants |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING |
Method Summary |
protected Class<?> |
resolveClass(ObjectStreamClass desc)
Returns the Class for the given ObjectStreamClass which is
initialized by the GlobalClassCreator or - if this fails -
by the super class. |
(package private) void |
setCurrentClassLoader(ClassLoader l)
Set the class loader to use next or null if to use
the default. |
Methods inherited from class java.io.ObjectInputStream |
available, close, defaultReadObject, enableResolveObject, read, read, readBoolean, readByte, readChar, readClassDescriptor, readDouble, readFields, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readObjectOverride, readShort, readStreamHeader, readUnshared, readUnsignedByte, readUnsignedShort, readUTF, registerValidation, resolveObject, resolveProxyClass, skipBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PriorityGlobalObjectInputStream
PriorityGlobalObjectInputStream(InputStream in)
throws IOException
- Delegates to super.
- Parameters:
in
- Delegated to super.
- Throws:
IOException
- If super throws an exception.
resolveClass
protected Class<?> resolveClass(ObjectStreamClass desc)
throws IOException,
ClassNotFoundException
- Returns the Class for the given
ObjectStreamClass
which is
initialized by the GlobalClassCreator
or - if this fails -
by the super class.
- Overrides:
resolveClass
in class GlobalObjectInputStream
- Parameters:
desc
- an instance of class ObjectStreamClass
- Returns:
- a
Class
object corresponding to desc
- Throws:
IOException
- any of the usual input/output exceptions
ClassNotFoundException
- if class of a serialized object cannot
be found- See Also:
GlobalObjectInputStream.resolveClass(java.io.ObjectStreamClass)
setCurrentClassLoader
void setCurrentClassLoader(ClassLoader l)
- Set the class loader to use next or
null
if to use
the default.
- Parameters:
l
- to use.
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.