public class OSGIObjectInputStream extends ObjectInputStream implements OSGIObjectStreamConstants
ObjectInputStream.GetField
Modifier and Type | Field and Description |
---|---|
protected Bundle |
b |
protected ObjectInputStream |
in |
protected org.osgi.service.log.LogService |
logger |
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
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
Constructor and Description |
---|
OSGIObjectInputStream(Bundle b,
InputStream in) |
OSGIObjectInputStream(Bundle b,
InputStream in,
org.osgi.service.log.LogService logger) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
protected Object |
createInstance(Class<?> clazz) |
protected Class<?> |
getClassForType(String type) |
protected Class |
loadClass(String classname) |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
protected Object |
readExternalizable() |
protected Object |
readFields(Class<?> clazz,
Object inst) |
float |
readFloat() |
void |
readFully(byte[] buf) |
void |
readFully(byte[] buf,
int off,
int len) |
int |
readInt() |
String |
readLine()
Deprecated.
|
long |
readLong() |
protected Object |
readNonSerializedObject() |
protected Object |
readObjectOverride() |
protected Object |
readSerializedObject() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
setLogService(org.osgi.service.log.LogService log) |
int |
skipBytes(int len) |
protected void |
trace(String message) |
defaultReadObject, enableResolveObject, readClassDescriptor, readFields, readObject, readStreamHeader, readUnshared, registerValidation, resolveClass, resolveObject, resolveProxyClass
mark, markSupported, read, reset, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, skip
protected final ObjectInputStream in
protected final Bundle b
protected org.osgi.service.log.LogService logger
public OSGIObjectInputStream(Bundle b, InputStream in, org.osgi.service.log.LogService logger) throws IOException
IOException
public OSGIObjectInputStream(Bundle b, InputStream in) throws IOException
IOException
public void setLogService(org.osgi.service.log.LogService log)
protected void trace(String message)
protected Class loadClass(String classname) throws ClassNotFoundException
ClassNotFoundException
protected Class<?> getClassForType(String type) throws ClassNotFoundException
ClassNotFoundException
protected final Object readObjectOverride() throws IOException, ClassNotFoundException
readObjectOverride
in class ObjectInputStream
IOException
ClassNotFoundException
protected Object readExternalizable() throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
protected Object readFields(Class<?> clazz, Object inst) throws IOException
IOException
protected Object createInstance(Class<?> clazz) throws IOException
IOException
protected Object readNonSerializedObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected Object readSerializedObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public final int read() throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
ObjectInputStream.read()
public final int read(byte[] buf, int off, int len) throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
ObjectInputStream.read(byte[], int, int)
public final int available() throws IOException
available
in interface ObjectInput
available
in class ObjectInputStream
IOException
ObjectInputStream.available()
public final void close() throws IOException
close
in interface Closeable
close
in interface ObjectInput
close
in interface AutoCloseable
close
in class ObjectInputStream
IOException
ObjectInputStream.close()
public final boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in class ObjectInputStream
IOException
ObjectInputStream.readBoolean()
public final byte readByte() throws IOException
readByte
in interface DataInput
readByte
in class ObjectInputStream
IOException
ObjectInputStream.readByte()
public final int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in class ObjectInputStream
IOException
ObjectInputStream.readUnsignedByte()
public final char readChar() throws IOException
readChar
in interface DataInput
readChar
in class ObjectInputStream
IOException
ObjectInputStream.readChar()
public final short readShort() throws IOException
readShort
in interface DataInput
readShort
in class ObjectInputStream
IOException
ObjectInputStream.readShort()
public final int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in class ObjectInputStream
IOException
ObjectInputStream.readUnsignedShort()
public final int readInt() throws IOException
readInt
in interface DataInput
readInt
in class ObjectInputStream
IOException
ObjectInputStream.readInt()
public final long readLong() throws IOException
readLong
in interface DataInput
readLong
in class ObjectInputStream
IOException
ObjectInputStream.readLong()
public final float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in class ObjectInputStream
IOException
ObjectInputStream.readFloat()
public final double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in class ObjectInputStream
IOException
ObjectInputStream.readDouble()
public final void readFully(byte[] buf) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
ObjectInputStream.readFully(byte[])
public final void readFully(byte[] buf, int off, int len) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
ObjectInputStream.readFully(byte[], int, int)
public final int skipBytes(int len) throws IOException
skipBytes
in interface DataInput
skipBytes
in class ObjectInputStream
IOException
ObjectInputStream.skipBytes(int)
public final String readLine() throws IOException
readLine
in interface DataInput
readLine
in class ObjectInputStream
IOException
public final String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in class ObjectInputStream
IOException
ObjectInputStream.readUTF()
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.