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
 
 public class OSGIObjectOutputStream extends ObjectOutputStream implements OSGIObjectStreamConstants - Since:
- 3.9
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.io.ObjectOutputStreamObjectOutputStream.PutField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected booleanallowNonSerializableprotected org.osgi.service.log.LogServiceloggerprotected ObjectOutputStreamout- 
Fields inherited from interface java.io.ObjectStreamConstantsbaseWireHandle, 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.OSGIObjectStreamConstantsC_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 SummaryConstructors Constructor Description OSGIObjectOutputStream(OutputStream out)OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable)OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable, org.osgi.service.log.LogService log)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidreset()voidsetAllowNonSerializable(boolean value)voidsetLogService(org.osgi.service.log.LogService log)protected voidtrace(String message)voidwrite(byte[] buf)voidwrite(byte[] buf, int off, int len)voidwrite(int val)voidwriteBoolean(boolean val)voidwriteByte(int val)voidwriteBytes(String str)voidwriteChar(int val)voidwriteChars(String str)voidwriteDouble(double val)protected voidwriteExternalizable(Externalizable obj, Class<?> clazz)protected voidwriteFields(Object obj, Class<?> clazz)voidwriteFloat(float val)voidwriteInt(int val)voidwriteLong(long val)protected voidwriteNonSerializable(Object obj, Class<?> clazz)protected voidwriteObjectOverride(Object obj)protected voidwriteSerializable(Object obj, Class<?> clazz)voidwriteShort(int val)voidwriteUTF(String str)- 
Methods inherited from class java.io.ObjectOutputStreamannotateClass, annotateProxyClass, defaultWriteObject, drain, enableReplaceObject, putFields, replaceObject, useProtocolVersion, writeClassDescriptor, writeFields, writeObject, writeStreamHeader, writeUnshared
 - 
Methods inherited from class java.io.OutputStreamnullOutputStream
 
- 
 
- 
- 
- 
Field Detail- 
outprotected final ObjectOutputStream out 
 - 
loggerprotected org.osgi.service.log.LogService logger 
 - 
allowNonSerializableprotected boolean allowNonSerializable 
 
- 
 - 
Constructor Detail- 
OSGIObjectOutputStreampublic OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable, org.osgi.service.log.LogService log) throws IOException - Throws:
- IOException
 
 - 
OSGIObjectOutputStreampublic OSGIObjectOutputStream(OutputStream out, boolean allowNonSerializable) throws IOException - Throws:
- IOException
 
 - 
OSGIObjectOutputStreampublic OSGIObjectOutputStream(OutputStream out) throws IOException - Throws:
- IOException
 
 
- 
 - 
Method Detail- 
setAllowNonSerializablepublic void setAllowNonSerializable(boolean value) 
 - 
setLogServicepublic void setLogService(org.osgi.service.log.LogService log) 
 - 
writeExternalizableprotected void writeExternalizable(Externalizable obj, Class<?> clazz) throws IOException - Throws:
- IOException
 
 - 
traceprotected void trace(String message) 
 - 
writeFieldsprotected void writeFields(Object obj, Class<?> clazz) throws IOException - Throws:
- IOException
 
 - 
writeNonSerializableprotected void writeNonSerializable(Object obj, Class<?> clazz) throws IOException - Throws:
- IOException
 
 - 
writeSerializableprotected void writeSerializable(Object obj, Class<?> clazz) throws IOException - Throws:
- IOException
 
 - 
writeObjectOverrideprotected void writeObjectOverride(Object obj) throws IOException - Overrides:
- writeObjectOverridein class- ObjectOutputStream
- Throws:
- IOException
 
 - 
writepublic final void write(int val) throws IOException- Specified by:
- writein interface- DataOutput
- Specified by:
- writein interface- ObjectOutput
- Overrides:
- writein class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.write(int)
 
 - 
writepublic final void write(byte[] buf) throws IOException- Specified by:
- writein interface- DataOutput
- Specified by:
- writein interface- ObjectOutput
- Overrides:
- writein class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.write(byte[])
 
 - 
writepublic final void write(byte[] buf, int off, int len) throws IOException- Specified by:
- writein interface- DataOutput
- Specified by:
- writein interface- ObjectOutput
- Overrides:
- writein class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.write(byte[], int, int)
 
 - 
flushpublic final void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin interface- ObjectOutput
- Overrides:
- flushin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.flush()
 
 - 
resetpublic final void reset() throws IOException- Overrides:
- resetin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.reset()
 
 - 
closepublic final void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Specified by:
- closein interface- ObjectOutput
- Overrides:
- closein class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.close()
 
 - 
writeBooleanpublic final void writeBoolean(boolean val) throws IOException- Specified by:
- writeBooleanin interface- DataOutput
- Overrides:
- writeBooleanin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeBoolean(boolean)
 
 - 
writeBytepublic final void writeByte(int val) throws IOException- Specified by:
- writeBytein interface- DataOutput
- Overrides:
- writeBytein class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeByte(int)
 
 - 
writeShortpublic final void writeShort(int val) throws IOException- Specified by:
- writeShortin interface- DataOutput
- Overrides:
- writeShortin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeShort(int)
 
 - 
writeCharpublic final void writeChar(int val) throws IOException- Specified by:
- writeCharin interface- DataOutput
- Overrides:
- writeCharin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeChar(int)
 
 - 
writeIntpublic final void writeInt(int val) throws IOException- Specified by:
- writeIntin interface- DataOutput
- Overrides:
- writeIntin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeInt(int)
 
 - 
writeLongpublic final void writeLong(long val) throws IOException- Specified by:
- writeLongin interface- DataOutput
- Overrides:
- writeLongin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeLong(long)
 
 - 
writeFloatpublic final void writeFloat(float val) throws IOException- Specified by:
- writeFloatin interface- DataOutput
- Overrides:
- writeFloatin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeFloat(float)
 
 - 
writeDoublepublic final void writeDouble(double val) throws IOException- Specified by:
- writeDoublein interface- DataOutput
- Overrides:
- writeDoublein class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeDouble(double)
 
 - 
writeBytespublic final void writeBytes(String str) throws IOException - Specified by:
- writeBytesin interface- DataOutput
- Overrides:
- writeBytesin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeBytes(java.lang.String)
 
 - 
writeCharspublic final void writeChars(String str) throws IOException - Specified by:
- writeCharsin interface- DataOutput
- Overrides:
- writeCharsin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeChars(java.lang.String)
 
 - 
writeUTFpublic final void writeUTF(String str) throws IOException - Specified by:
- writeUTFin interface- DataOutput
- Overrides:
- writeUTFin class- ObjectOutputStream
- Throws:
- IOException
- See Also:
- ObjectOutputStream.writeUTF(java.lang.String)
 
 
- 
 
-