Package org.eclipse.ecf.core.util
Class OSGIObjectOutputStream
java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.eclipse.ecf.core.util.OSGIObjectOutputStream
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,ObjectOutput
,ObjectStreamConstants
,AutoCloseable
,OSGIObjectStreamConstants
- Direct Known Subclasses:
IdentifiableObjectOutputStream
- Since:
- 3.9
-
Nested Class Summary
Nested classes/interfaces inherited from class java.io.ObjectOutputStream
ObjectOutputStream.PutField
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected org.osgi.service.log.LogService
protected final ObjectOutputStream
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, 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.OSGIObjectStreamConstants
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
-
Constructor Summary
ConstructorDescriptionOSGIObjectOutputStream
(OutputStream out, boolean allowNonSerializable) OSGIObjectOutputStream
(OutputStream out, boolean allowNonSerializable, org.osgi.service.log.LogService log) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
final void
flush()
final void
reset()
void
setAllowNonSerializable
(boolean value) void
setLogService
(org.osgi.service.log.LogService log) protected void
final void
write
(byte[] buf) final void
write
(byte[] buf, int off, int len) final void
write
(int val) final void
writeBoolean
(boolean val) final void
writeByte
(int val) final void
writeBytes
(String str) final void
writeChar
(int val) final void
writeChars
(String str) final void
writeDouble
(double val) protected void
writeExternalizable
(Externalizable obj, Class<?> clazz) protected void
writeFields
(Object obj, Class<?> clazz) final void
writeFloat
(float val) final void
writeInt
(int val) final void
writeLong
(long val) protected void
writeNonSerializable
(Object obj, Class<?> clazz) protected void
protected void
writeSerializable
(Object obj, Class<?> clazz) final void
writeShort
(int val) final void
Methods inherited from class java.io.ObjectOutputStream
annotateClass, annotateProxyClass, defaultWriteObject, drain, enableReplaceObject, putFields, replaceObject, useProtocolVersion, writeClassDescriptor, writeFields, writeObject, writeStreamHeader, writeUnshared
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
-
logger
protected org.osgi.service.log.LogService logger -
allowNonSerializable
protected boolean allowNonSerializable
-
-
Constructor Details
-
OSGIObjectOutputStream
public OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable, org.osgi.service.log.LogService log) throws IOException - Throws:
IOException
-
OSGIObjectOutputStream
- Throws:
IOException
-
OSGIObjectOutputStream
- Throws:
IOException
-
-
Method Details
-
setAllowNonSerializable
public void setAllowNonSerializable(boolean value) -
setLogService
public void setLogService(org.osgi.service.log.LogService log) -
writeExternalizable
- Throws:
IOException
-
trace
-
writeFields
- Throws:
IOException
-
writeNonSerializable
- Throws:
IOException
-
writeSerializable
- Throws:
IOException
-
writeObjectOverride
- Overrides:
writeObjectOverride
in classObjectOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in interfaceObjectOutput
- Overrides:
write
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in interfaceObjectOutput
- Overrides:
write
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
write
- Specified by:
write
in interfaceDataOutput
- Specified by:
write
in interfaceObjectOutput
- Overrides:
write
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in interfaceObjectOutput
- Overrides:
flush
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
reset
- Overrides:
reset
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceObjectOutput
- Overrides:
close
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Overrides:
writeBoolean
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Overrides:
writeByte
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Overrides:
writeShort
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Overrides:
writeChar
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Overrides:
writeInt
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Overrides:
writeLong
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Overrides:
writeFloat
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Overrides:
writeDouble
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
- Overrides:
writeBytes
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Overrides:
writeChars
in classObjectOutputStream
- Throws:
IOException
- See Also:
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Overrides:
writeUTF
in classObjectOutputStream
- Throws:
IOException
- See Also:
-