Package org.eclipse.ecf.core.util
Class OSGIObjectInputStream
java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.eclipse.ecf.core.util.OSGIObjectInputStream
- All Implemented Interfaces:
Closeable,DataInput,ObjectInput,ObjectStreamConstants,AutoCloseable,OSGIObjectStreamConstants
- Direct Known Subclasses:
IdentifiableObjectInputStream
- Since:
- 3.9
-
Nested Class Summary
Nested classes/interfaces inherited from class java.io.ObjectInputStream
ObjectInputStream.GetField -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Bundleprotected ObjectInputStreamprotected org.osgi.service.log.LogServiceFields 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, SERIAL_FILTER_PERMISSION, 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_STRINGFields inherited from interface org.eclipse.ecf.core.util.OSGIObjectStreamConstants
C_ARRAY, C_BOOL, C_BYTE, C_CHAR, C_COLL, C_DICT, C_DOUBLE, C_DTO, C_ENUM, C_EXTER, C_FLOAT, C_INT, C_ITER, C_LIST, C_LONG, C_MAP, C_NULL, C_OBJECT, C_OBOOL, C_OBYTE, C_OCHAR, C_ODOUBLE, C_OFLOAT, C_OINT, C_OLONG, C_OSHORT, C_SER, C_SET, C_SHORT, C_STRING, C_VER -
Constructor Summary
ConstructorsConstructorDescriptionOSGIObjectInputStream(Bundle b, InputStream in, org.osgi.service.log.LogService logger) -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal voidclose()protected ObjectcreateInstance(Class<?> clazz) protected Class<?>getClassForType(String type) protected Classfinal intread()final intread(byte[] buf, int off, int len) final booleanfinal bytereadByte()final charreadChar()final doubleprotected Objectprotected ObjectreadFields(Class<?> clazz, Object inst) final floatfinal voidreadFully(byte[] buf) final voidreadFully(byte[] buf, int off, int len) final intreadInt()final StringreadLine()Deprecated.final longreadLong()protected Objectprotected final Objectprotected Objectfinal shortfinal intfinal intfinal StringreadUTF()voidvoidsetLogService(org.osgi.service.log.LogService log) final intskipBytes(int len) protected voidMethods inherited from class java.io.ObjectInputStream
defaultReadObject, enableResolveObject, getObjectInputFilter, readClassDescriptor, readFields, readObject, readStreamHeader, readUnshared, registerValidation, resolveClass, resolveObject, resolveProxyClass, setObjectInputFilterMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.ObjectInput
read, skip
-
Field Details
-
in
-
b
-
logger
protected org.osgi.service.log.LogService logger
-
-
Constructor Details
-
OSGIObjectInputStream
public OSGIObjectInputStream(Bundle b, InputStream in, org.osgi.service.log.LogService logger) throws IOException - Throws:
IOException
-
OSGIObjectInputStream
- Throws:
IOException
-
-
Method Details
-
setClassLoader
- Since:
- 3.10
-
setLogService
public void setLogService(org.osgi.service.log.LogService log) -
trace
-
loadClass
- Throws:
ClassNotFoundException
-
getClassForType
- Throws:
ClassNotFoundException
-
readObjectOverride
- Overrides:
readObjectOverridein classObjectInputStream- Throws:
IOExceptionClassNotFoundException
-
readExternalizable
- Throws:
ClassNotFoundExceptionIOException
-
readFields
- Throws:
IOException
-
createInstance
- Throws:
IOException
-
readNonSerializedObject
- Throws:
IOExceptionClassNotFoundException
-
readSerializedObject
- Throws:
IOExceptionClassNotFoundException
-
read
- Specified by:
readin interfaceObjectInput- Overrides:
readin classObjectInputStream- Throws:
IOException- See Also:
-
read
- Specified by:
readin interfaceObjectInput- Overrides:
readin classObjectInputStream- Throws:
IOException- See Also:
-
available
- Specified by:
availablein interfaceObjectInput- Overrides:
availablein classObjectInputStream- Throws:
IOException- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceObjectInput- Overrides:
closein classObjectInputStream- Throws:
IOException- See Also:
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Overrides:
readBooleanin classObjectInputStream- Throws:
IOException- See Also:
-
readByte
- Specified by:
readBytein interfaceDataInput- Overrides:
readBytein classObjectInputStream- Throws:
IOException- See Also:
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Overrides:
readUnsignedBytein classObjectInputStream- Throws:
IOException- See Also:
-
readChar
- Specified by:
readCharin interfaceDataInput- Overrides:
readCharin classObjectInputStream- Throws:
IOException- See Also:
-
readShort
- Specified by:
readShortin interfaceDataInput- Overrides:
readShortin classObjectInputStream- Throws:
IOException- See Also:
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Overrides:
readUnsignedShortin classObjectInputStream- Throws:
IOException- See Also:
-
readInt
- Specified by:
readIntin interfaceDataInput- Overrides:
readIntin classObjectInputStream- Throws:
IOException- See Also:
-
readLong
- Specified by:
readLongin interfaceDataInput- Overrides:
readLongin classObjectInputStream- Throws:
IOException- See Also:
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Overrides:
readFloatin classObjectInputStream- Throws:
IOException- See Also:
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Overrides:
readDoublein classObjectInputStream- Throws:
IOException- See Also:
-
readFully
- Specified by:
readFullyin interfaceDataInput- Overrides:
readFullyin classObjectInputStream- Throws:
IOException- See Also:
-
readFully
- Specified by:
readFullyin interfaceDataInput- Overrides:
readFullyin classObjectInputStream- Throws:
IOException- See Also:
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Overrides:
skipBytesin classObjectInputStream- Throws:
IOException- See Also:
-
readLine
Deprecated.- Specified by:
readLinein interfaceDataInput- Overrides:
readLinein classObjectInputStream- Returns:
- String
- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Overrides:
readUTFin classObjectInputStream- Throws:
IOException- See Also:
-