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_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 |
|---|
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, writeUnsharedprotected 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
IOExceptionpublic OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable) throws IOException
IOExceptionpublic OSGIObjectOutputStream(OutputStream out) throws IOException
IOExceptionpublic void setAllowNonSerializable(boolean value)
public void setLogService(org.osgi.service.log.LogService log)
protected void writeExternalizable(Externalizable obj, Class<?> clazz) throws IOException
IOExceptionprotected void trace(String message)
protected void writeFields(Object obj, Class<?> clazz) throws IOException
IOExceptionprotected void writeNonSerializable(Object obj, Class<?> clazz) throws IOException
IOExceptionprotected void writeSerializable(Object obj, Class<?> clazz) throws IOException
IOExceptionprotected void writeObjectOverride(Object obj) throws IOException
writeObjectOverride in class ObjectOutputStreamIOExceptionpublic final void write(int val)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionObjectOutputStream.write(int)public final void write(byte[] buf)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionObjectOutputStream.write(byte[])public final void write(byte[] buf,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionObjectOutputStream.write(byte[], int, int)public final void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputflush in class ObjectOutputStreamIOExceptionObjectOutputStream.flush()public final void reset()
throws IOException
reset in class ObjectOutputStreamIOExceptionObjectOutputStream.reset()public final void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in interface AutoCloseableclose in class ObjectOutputStreamIOExceptionObjectOutputStream.close()public final void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in class ObjectOutputStreamIOExceptionObjectOutputStream.writeBoolean(boolean)public final void writeByte(int val)
throws IOException
writeByte in interface DataOutputwriteByte in class ObjectOutputStreamIOExceptionObjectOutputStream.writeByte(int)public final void writeShort(int val)
throws IOException
writeShort in interface DataOutputwriteShort in class ObjectOutputStreamIOExceptionObjectOutputStream.writeShort(int)public final void writeChar(int val)
throws IOException
writeChar in interface DataOutputwriteChar in class ObjectOutputStreamIOExceptionObjectOutputStream.writeChar(int)public final void writeInt(int val)
throws IOException
writeInt in interface DataOutputwriteInt in class ObjectOutputStreamIOExceptionObjectOutputStream.writeInt(int)public final void writeLong(long val)
throws IOException
writeLong in interface DataOutputwriteLong in class ObjectOutputStreamIOExceptionObjectOutputStream.writeLong(long)public final void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputwriteFloat in class ObjectOutputStreamIOExceptionObjectOutputStream.writeFloat(float)public final void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputwriteDouble in class ObjectOutputStreamIOExceptionObjectOutputStream.writeDouble(double)public final void writeBytes(String str) throws IOException
writeBytes in interface DataOutputwriteBytes in class ObjectOutputStreamIOExceptionObjectOutputStream.writeBytes(java.lang.String)public final void writeChars(String str) throws IOException
writeChars in interface DataOutputwriteChars in class ObjectOutputStreamIOExceptionObjectOutputStream.writeChars(java.lang.String)public final void writeUTF(String str) throws IOException
writeUTF in interface DataOutputwriteUTF in class ObjectOutputStreamIOExceptionObjectOutputStream.writeUTF(java.lang.String)Copyright © 2004–2020 Eclipse Foundation. All rights reserved.