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
 
 public class OSGIObjectInputStream extends ObjectInputStream implements OSGIObjectStreamConstants - Since:
- 3.9
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.io.ObjectInputStreamObjectInputStream.GetField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Bundlebprotected ObjectInputStreaminprotected org.osgi.service.log.LogServicelogger- 
Fields inherited from interface java.io.ObjectStreamConstantsbaseWireHandle, 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_STRING
 - 
Fields inherited from interface org.eclipse.ecf.core.util.OSGIObjectStreamConstantsC_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 SummaryConstructors Constructor Description OSGIObjectInputStream(Bundle b, InputStream in)OSGIObjectInputStream(Bundle b, InputStream in, org.osgi.service.log.LogService logger)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intavailable()voidclose()protected ObjectcreateInstance(Class<?> clazz)protected Class<?>getClassForType(String type)protected ClassloadClass(String classname)intread()intread(byte[] buf, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()protected ObjectreadExternalizable()protected ObjectreadFields(Class<?> clazz, Object inst)floatreadFloat()voidreadFully(byte[] buf)voidreadFully(byte[] buf, int off, int len)intreadInt()StringreadLine()Deprecated.longreadLong()protected ObjectreadNonSerializedObject()protected ObjectreadObjectOverride()protected ObjectreadSerializedObject()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()voidsetClassLoader(ClassLoader cl)voidsetLogService(org.osgi.service.log.LogService log)intskipBytes(int len)protected voidtrace(String message)- 
Methods inherited from class java.io.ObjectInputStreamdefaultReadObject, enableResolveObject, getObjectInputFilter, readClassDescriptor, readFields, readObject, readStreamHeader, readUnshared, registerValidation, resolveClass, resolveObject, resolveProxyClass, setObjectInputFilter
 - 
Methods inherited from class java.io.InputStreammark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.io.ObjectInputread, skip
 
- 
 
- 
- 
- 
Field Detail- 
inprotected ObjectInputStream in 
 - 
bprotected final Bundle b 
 - 
loggerprotected org.osgi.service.log.LogService logger 
 
- 
 - 
Constructor Detail- 
OSGIObjectInputStreampublic OSGIObjectInputStream(Bundle b, InputStream in, org.osgi.service.log.LogService logger) throws IOException - Throws:
- IOException
 
 - 
OSGIObjectInputStreampublic OSGIObjectInputStream(Bundle b, InputStream in) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
setClassLoaderpublic void setClassLoader(ClassLoader cl) - Since:
- 3.10
 
 - 
setLogServicepublic void setLogService(org.osgi.service.log.LogService log) 
 - 
traceprotected void trace(String message) 
 - 
loadClassprotected Class loadClass(String classname) throws ClassNotFoundException - Throws:
- ClassNotFoundException
 
 - 
getClassForTypeprotected Class<?> getClassForType(String type) throws ClassNotFoundException - Throws:
- ClassNotFoundException
 
 - 
readObjectOverrideprotected final Object readObjectOverride() throws IOException, ClassNotFoundException - Overrides:
- readObjectOverridein class- ObjectInputStream
- Throws:
- IOException
- ClassNotFoundException
 
 - 
readExternalizableprotected Object readExternalizable() throws ClassNotFoundException, IOException - Throws:
- ClassNotFoundException
- IOException
 
 - 
readFieldsprotected Object readFields(Class<?> clazz, Object inst) throws IOException - Throws:
- IOException
 
 - 
createInstanceprotected Object createInstance(Class<?> clazz) throws IOException - Throws:
- IOException
 
 - 
readNonSerializedObjectprotected Object readNonSerializedObject() throws IOException, ClassNotFoundException - Throws:
- IOException
- ClassNotFoundException
 
 - 
readSerializedObjectprotected Object readSerializedObject() throws IOException, ClassNotFoundException - Throws:
- IOException
- ClassNotFoundException
 
 - 
readpublic final int read() throws IOException- Specified by:
- readin interface- ObjectInput
- Overrides:
- readin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.read()
 
 - 
readpublic final int read(byte[] buf, int off, int len) throws IOException- Specified by:
- readin interface- ObjectInput
- Overrides:
- readin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.read(byte[], int, int)
 
 - 
availablepublic final int available() throws IOException- Specified by:
- availablein interface- ObjectInput
- Overrides:
- availablein class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.available()
 
 - 
closepublic final void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- ObjectInput
- Overrides:
- closein class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.close()
 
 - 
readBooleanpublic final boolean readBoolean() throws IOException- Specified by:
- readBooleanin interface- DataInput
- Overrides:
- readBooleanin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readBoolean()
 
 - 
readBytepublic final byte readByte() throws IOException- Specified by:
- readBytein interface- DataInput
- Overrides:
- readBytein class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readByte()
 
 - 
readUnsignedBytepublic final int readUnsignedByte() throws IOException- Specified by:
- readUnsignedBytein interface- DataInput
- Overrides:
- readUnsignedBytein class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readUnsignedByte()
 
 - 
readCharpublic final char readChar() throws IOException- Specified by:
- readCharin interface- DataInput
- Overrides:
- readCharin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readChar()
 
 - 
readShortpublic final short readShort() throws IOException- Specified by:
- readShortin interface- DataInput
- Overrides:
- readShortin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readShort()
 
 - 
readUnsignedShortpublic final int readUnsignedShort() throws IOException- Specified by:
- readUnsignedShortin interface- DataInput
- Overrides:
- readUnsignedShortin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readUnsignedShort()
 
 - 
readIntpublic final int readInt() throws IOException- Specified by:
- readIntin interface- DataInput
- Overrides:
- readIntin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readInt()
 
 - 
readLongpublic final long readLong() throws IOException- Specified by:
- readLongin interface- DataInput
- Overrides:
- readLongin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readLong()
 
 - 
readFloatpublic final float readFloat() throws IOException- Specified by:
- readFloatin interface- DataInput
- Overrides:
- readFloatin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readFloat()
 
 - 
readDoublepublic final double readDouble() throws IOException- Specified by:
- readDoublein interface- DataInput
- Overrides:
- readDoublein class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readDouble()
 
 - 
readFullypublic final void readFully(byte[] buf) throws IOException- Specified by:
- readFullyin interface- DataInput
- Overrides:
- readFullyin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readFully(byte[])
 
 - 
readFullypublic final void readFully(byte[] buf, int off, int len) throws IOException- Specified by:
- readFullyin interface- DataInput
- Overrides:
- readFullyin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readFully(byte[], int, int)
 
 - 
skipBytespublic final int skipBytes(int len) throws IOException- Specified by:
- skipBytesin interface- DataInput
- Overrides:
- skipBytesin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.skipBytes(int)
 
 - 
readLinepublic final String readLine() throws IOException Deprecated.- Specified by:
- readLinein interface- DataInput
- Overrides:
- readLinein class- ObjectInputStream
- Returns:
- String
- Throws:
- IOException
 
 - 
readUTFpublic final String readUTF() throws IOException - Specified by:
- readUTFin interface- DataInput
- Overrides:
- readUTFin class- ObjectInputStream
- Throws:
- IOException
- See Also:
- ObjectInputStream.readUTF()
 
 
- 
 
-