public class OSGIObjectOutputStream extends ObjectOutputStream implements OSGIObjectStreamConstants
ObjectOutputStream.PutField
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowNonSerializable |
protected org.osgi.service.log.LogService |
logger |
protected ObjectOutputStream |
out |
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 |
---|
OSGIObjectOutputStream(OutputStream out) |
OSGIObjectOutputStream(OutputStream out,
boolean allowNonSerializable) |
OSGIObjectOutputStream(OutputStream out,
boolean allowNonSerializable,
org.osgi.service.log.LogService log) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
reset() |
void |
setAllowNonSerializable(boolean value) |
void |
setLogService(org.osgi.service.log.LogService log) |
protected void |
trace(String message) |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int val) |
void |
writeBoolean(boolean val) |
void |
writeByte(int val) |
void |
writeBytes(String str) |
void |
writeChar(int val) |
void |
writeChars(String str) |
void |
writeDouble(double val) |
protected void |
writeExternalizable(Externalizable obj,
Class<?> clazz) |
protected void |
writeFields(Object obj,
Class<?> clazz) |
void |
writeFloat(float val) |
void |
writeInt(int val) |
void |
writeLong(long val) |
protected void |
writeNonSerializable(Object obj,
Class<?> clazz) |
protected void |
writeObjectOverride(Object obj) |
protected void |
writeSerializable(Object obj,
Class<?> clazz) |
void |
writeShort(int val) |
void |
writeUTF(String str) |
annotateClass, annotateProxyClass, defaultWriteObject, drain, enableReplaceObject, putFields, replaceObject, useProtocolVersion, writeClassDescriptor, writeFields, writeObject, writeStreamHeader, writeUnshared
protected final ObjectOutputStream out
protected org.osgi.service.log.LogService logger
protected boolean allowNonSerializable
public OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable, org.osgi.service.log.LogService log) throws IOException
IOException
public OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable) throws IOException
IOException
public OSGIObjectOutputStream(OutputStream out) throws IOException
IOException
public void setAllowNonSerializable(boolean value)
public void setLogService(org.osgi.service.log.LogService log)
protected void writeExternalizable(Externalizable obj, Class<?> clazz) throws IOException
IOException
protected void trace(String message)
protected void writeFields(Object obj, Class<?> clazz) throws IOException
IOException
protected void writeNonSerializable(Object obj, Class<?> clazz) throws IOException
IOException
protected void writeSerializable(Object obj, Class<?> clazz) throws IOException
IOException
protected void writeObjectOverride(Object obj) throws IOException
writeObjectOverride
in class ObjectOutputStream
IOException
public final void write(int val) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
ObjectOutputStream.write(int)
public final void write(byte[] buf) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
ObjectOutputStream.write(byte[])
public final void write(byte[] buf, int off, int len) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class ObjectOutputStream
IOException
ObjectOutputStream.write(byte[], int, int)
public final void flush() throws IOException
flush
in interface Flushable
flush
in interface ObjectOutput
flush
in class ObjectOutputStream
IOException
ObjectOutputStream.flush()
public final void reset() throws IOException
reset
in class ObjectOutputStream
IOException
ObjectOutputStream.reset()
public final void close() throws IOException
close
in interface Closeable
close
in interface ObjectOutput
close
in interface AutoCloseable
close
in class ObjectOutputStream
IOException
ObjectOutputStream.close()
public final void writeBoolean(boolean val) throws IOException
writeBoolean
in interface DataOutput
writeBoolean
in class ObjectOutputStream
IOException
ObjectOutputStream.writeBoolean(boolean)
public final void writeByte(int val) throws IOException
writeByte
in interface DataOutput
writeByte
in class ObjectOutputStream
IOException
ObjectOutputStream.writeByte(int)
public final void writeShort(int val) throws IOException
writeShort
in interface DataOutput
writeShort
in class ObjectOutputStream
IOException
ObjectOutputStream.writeShort(int)
public final void writeChar(int val) throws IOException
writeChar
in interface DataOutput
writeChar
in class ObjectOutputStream
IOException
ObjectOutputStream.writeChar(int)
public final void writeInt(int val) throws IOException
writeInt
in interface DataOutput
writeInt
in class ObjectOutputStream
IOException
ObjectOutputStream.writeInt(int)
public final void writeLong(long val) throws IOException
writeLong
in interface DataOutput
writeLong
in class ObjectOutputStream
IOException
ObjectOutputStream.writeLong(long)
public final void writeFloat(float val) throws IOException
writeFloat
in interface DataOutput
writeFloat
in class ObjectOutputStream
IOException
ObjectOutputStream.writeFloat(float)
public final void writeDouble(double val) throws IOException
writeDouble
in interface DataOutput
writeDouble
in class ObjectOutputStream
IOException
ObjectOutputStream.writeDouble(double)
public final void writeBytes(String str) throws IOException
writeBytes
in interface DataOutput
writeBytes
in class ObjectOutputStream
IOException
ObjectOutputStream.writeBytes(java.lang.String)
public final void writeChars(String str) throws IOException
writeChars
in interface DataOutput
writeChars
in class ObjectOutputStream
IOException
ObjectOutputStream.writeChars(java.lang.String)
public final void writeUTF(String str) throws IOException
writeUTF
in interface DataOutput
writeUTF
in class ObjectOutputStream
IOException
ObjectOutputStream.writeUTF(java.lang.String)
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.