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_VERbaseWireHandle, 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, resolveProxyClassmark, markSupported, read, reset, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, skipprotected 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
IOExceptionpublic OSGIObjectInputStream(Bundle b, InputStream in) throws IOException
IOExceptionpublic void setLogService(org.osgi.service.log.LogService log)
protected void trace(String message)
protected Class loadClass(String classname) throws ClassNotFoundException
ClassNotFoundExceptionprotected Class<?> getClassForType(String type) throws ClassNotFoundException
ClassNotFoundExceptionprotected final Object readObjectOverride() throws IOException, ClassNotFoundException
readObjectOverride in class ObjectInputStreamIOExceptionClassNotFoundExceptionprotected Object readExternalizable() throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionprotected Object readFields(Class<?> clazz, Object inst) throws IOException
IOExceptionprotected Object createInstance(Class<?> clazz) throws IOException
IOExceptionprotected Object readNonSerializedObject() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected Object readSerializedObject() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic final int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionObjectInputStream.read()public final int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionObjectInputStream.read(byte[], int, int)public final int available()
throws IOException
available in interface ObjectInputavailable in class ObjectInputStreamIOExceptionObjectInputStream.available()public final void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class ObjectInputStreamIOExceptionObjectInputStream.close()public final boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOExceptionObjectInputStream.readBoolean()public final byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOExceptionObjectInputStream.readByte()public final int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOExceptionObjectInputStream.readUnsignedByte()public final char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOExceptionObjectInputStream.readChar()public final short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOExceptionObjectInputStream.readShort()public final int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOExceptionObjectInputStream.readUnsignedShort()public final int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOExceptionObjectInputStream.readInt()public final long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOExceptionObjectInputStream.readLong()public final float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOExceptionObjectInputStream.readFloat()public final double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOExceptionObjectInputStream.readDouble()public final void readFully(byte[] buf)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionObjectInputStream.readFully(byte[])public final void readFully(byte[] buf,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionObjectInputStream.readFully(byte[], int, int)public final int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOExceptionObjectInputStream.skipBytes(int)public final String readLine() throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOExceptionpublic final String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOExceptionObjectInputStream.readUTF()Copyright © 2004–2020 Eclipse Foundation. All rights reserved.