org.eclipse.ecf.core.util
Class ClassResolverObjectInputStream
java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.eclipse.ecf.core.util.ClassResolverObjectInputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataInput, java.io.ObjectInput, java.io.ObjectStreamConstants
public class ClassResolverObjectInputStream
- extends java.io.ObjectInputStream
- Since:
- 3.7
Nested classes/interfaces inherited from class java.io.ObjectInputStream |
java.io.ObjectInputStream.GetField |
Field Summary |
static java.util.HashMap<java.lang.String,java.lang.Class<?>> |
primClasses
|
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 |
void |
close()
|
static java.io.ObjectInputStream |
create(org.osgi.framework.BundleContext ctxt,
java.io.InputStream ins)
|
static java.io.ObjectInputStream |
create(org.osgi.framework.BundleContext ctxt,
java.io.InputStream ins,
java.lang.String filter)
|
protected org.osgi.framework.BundleContext |
getContext()
|
protected java.lang.Class<?> |
resolveClass(java.io.ObjectStreamClass desc)
|
static java.lang.Class<?> |
resolvePrimitiveClass(java.io.ObjectStreamClass desc,
java.lang.ClassNotFoundException cnfe)
|
Methods inherited from class java.io.ObjectInputStream |
available, 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.io.InputStream |
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectInput |
read, skip |
primClasses
public static final java.util.HashMap<java.lang.String,java.lang.Class<?>> primClasses
ClassResolverObjectInputStream
protected ClassResolverObjectInputStream(org.osgi.framework.BundleContext ctxt,
java.lang.String classResolverFilter)
throws java.io.IOException,
java.lang.SecurityException,
org.osgi.framework.InvalidSyntaxException
- Throws:
java.io.IOException
java.lang.SecurityException
org.osgi.framework.InvalidSyntaxException
ClassResolverObjectInputStream
protected ClassResolverObjectInputStream(org.osgi.framework.BundleContext ctxt)
throws java.io.IOException,
java.lang.SecurityException,
org.osgi.framework.InvalidSyntaxException
- Throws:
java.io.IOException
java.lang.SecurityException
org.osgi.framework.InvalidSyntaxException
ClassResolverObjectInputStream
public ClassResolverObjectInputStream(org.osgi.framework.BundleContext ctxt,
java.io.InputStream ins,
java.lang.String classResolverFilter)
throws java.io.IOException,
java.lang.SecurityException,
org.osgi.framework.InvalidSyntaxException
- Throws:
java.io.IOException
java.lang.SecurityException
org.osgi.framework.InvalidSyntaxException
ClassResolverObjectInputStream
public ClassResolverObjectInputStream(org.osgi.framework.BundleContext ctxt,
java.io.InputStream ins)
throws java.io.IOException,
java.lang.SecurityException,
org.osgi.framework.InvalidSyntaxException
- Throws:
java.io.IOException
java.lang.SecurityException
org.osgi.framework.InvalidSyntaxException
create
public static java.io.ObjectInputStream create(org.osgi.framework.BundleContext ctxt,
java.io.InputStream ins,
java.lang.String filter)
throws java.io.IOException,
java.lang.SecurityException
- Throws:
java.io.IOException
java.lang.SecurityException
create
public static java.io.ObjectInputStream create(org.osgi.framework.BundleContext ctxt,
java.io.InputStream ins)
throws java.io.IOException
- Throws:
java.io.IOException
getContext
protected org.osgi.framework.BundleContext getContext()
resolveClass
protected java.lang.Class<?> resolveClass(java.io.ObjectStreamClass desc)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Overrides:
resolveClass
in class java.io.ObjectInputStream
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
resolvePrimitiveClass
public static java.lang.Class<?> resolvePrimitiveClass(java.io.ObjectStreamClass desc,
java.lang.ClassNotFoundException cnfe)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface java.io.ObjectInput
- Overrides:
close
in class java.io.ObjectInputStream
- Throws:
java.io.IOException