public class JBossObjectOutputStream extends ObjectOutputStream implements DataContainerConstants
ObjectOutputStream.PutFieldBOOLEAN, BOOLEANOBJ, BYTE, BYTEARRAY, BYTEOBJ, CHARACTER, CHARACTEROBJ, CLASSDEF, closeSign, DOUBLE, DOUBLEOBJ, FLOAT, FLOATOBJ, IMMUTABLE_OBJREF, INTEGER, INTEGEROBJ, LONG, LONGOBJ, NEWDEF, NULLREF, OBJECTDEF, OBJECTREF, openSign, RESET, SHORT, SHORTOBJ, SMARTCLONE_DEF, STRINGbaseWireHandle, 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 |
|---|
JBossObjectOutputStream(OutputStream output)
Creates an OutputStream, that by default doesn't require
|
JBossObjectOutputStream(OutputStream output,
boolean checkSerializableClass) |
JBossObjectOutputStream(OutputStream output,
boolean checkSerializableClass,
StringUtilBuffer buffer) |
JBossObjectOutputStream(OutputStream output,
StringUtilBuffer buffer)
Creates an OutputStream, that by default doesn't require
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
defaultWriteObject() |
protected void |
drain() |
void |
flush()
Flushes the stream.
|
protected ClassDescriptorStrategy |
getClassDescriptorStrategy() |
protected ObjectDescriptorStrategy |
getObjectDescriptorStrategy() |
protected ObjectSubstitutionInterface |
getSubstitutionInterface() |
protected boolean |
isStandardReplacement() |
void |
reset() |
protected void |
setClassDescriptorStrategy(ClassDescriptorStrategy classDescriptorStrategy) |
protected void |
setObjectDescriptorStrategy(ObjectDescriptorStrategy objectDescriptorStrategy) |
protected void |
setStandardReplacement(boolean standardReplacement) |
Object |
smartClone(Object obj)
Reuses every primitive value to recreate another object.
|
Object |
smartClone(Object obj,
SafeCloningRepository safeToReuse)
Reuses every primitive value to recreate another object.
|
Object |
smartClone(Object obj,
SafeCloningRepository safeToReuse,
ClassLoader loader)
Reuses every primitive value to recreate another object.
|
void |
write(byte[] buf)
Writes an array of bytes.
|
void |
write(byte[] buf,
int off,
int len) |
void |
write(int val)
Writes a byte.
|
void |
writeBoolean(boolean val) |
void |
writeByte(int val) |
void |
writeBytes(String str) |
void |
writeChar(int val) |
void |
writeChars(String str) |
protected void |
writeClassDescriptor(ObjectStreamClass desc) |
void |
writeDouble(double val) |
void |
writeFields() |
void |
writeFloat(float val) |
void |
writeInt(int val) |
void |
writeLong(long val) |
protected void |
writeObjectOverride(Object obj) |
void |
writeObjectUsingDataContainer(Object obj) |
void |
writeShort(int val) |
protected void |
writeStreamHeader() |
void |
writeUnshared(Object obj) |
void |
writeUTF(String str) |
annotateClass, annotateProxyClass, enableReplaceObject, putFields, replaceObject, useProtocolVersion, writeObjectpublic JBossObjectOutputStream(OutputStream output) throws IOException
IOExceptionpublic JBossObjectOutputStream(OutputStream output, StringUtilBuffer buffer) throws IOException
IOExceptionpublic JBossObjectOutputStream(OutputStream output, boolean checkSerializableClass) throws IOException
IOExceptionpublic JBossObjectOutputStream(OutputStream output, boolean checkSerializableClass, StringUtilBuffer buffer) throws IOException
IOExceptionprotected ObjectSubstitutionInterface getSubstitutionInterface() throws IOException
IOExceptionpublic void writeObjectUsingDataContainer(Object obj) throws IOException
IOExceptionprotected void writeObjectOverride(Object obj) throws IOException
writeObjectOverride in class ObjectOutputStreamIOExceptionpublic void writeUnshared(Object obj) throws IOException
writeUnshared in class ObjectOutputStreamIOExceptionpublic void defaultWriteObject()
throws IOException
defaultWriteObject in class ObjectOutputStreamIOExceptionpublic void writeFields()
throws IOException
writeFields in class ObjectOutputStreamIOExceptionpublic void reset()
throws IOException
reset in class ObjectOutputStreamIOExceptionprotected void writeStreamHeader()
throws IOException
writeStreamHeader in class ObjectOutputStreamIOExceptionprotected void writeClassDescriptor(ObjectStreamClass desc) throws IOException
writeClassDescriptor in class ObjectOutputStreamIOExceptionprotected ClassDescriptorStrategy getClassDescriptorStrategy()
protected void setClassDescriptorStrategy(ClassDescriptorStrategy classDescriptorStrategy)
protected ObjectDescriptorStrategy getObjectDescriptorStrategy()
protected void setObjectDescriptorStrategy(ObjectDescriptorStrategy objectDescriptorStrategy)
protected boolean isStandardReplacement()
protected void setStandardReplacement(boolean standardReplacement)
public void write(int val)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamval - the byte to be written to the streamIOException - If an I/O error has occurred.public void write(byte[] buf)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreambuf - the data to be writtenIOException - If an I/O error has occurred.public void write(byte[] buf,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in class ObjectOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in interface ObjectOutputflush in class ObjectOutputStreamIOException - If an I/O error has occurred.protected void drain()
throws IOException
drain in class ObjectOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface ObjectOutputclose in interface AutoCloseableclose in class ObjectOutputStreamIOExceptionpublic void writeBoolean(boolean val)
throws IOException
writeBoolean in interface DataOutputwriteBoolean in class ObjectOutputStreamIOExceptionpublic void writeByte(int val)
throws IOException
writeByte in interface DataOutputwriteByte in class ObjectOutputStreamIOExceptionpublic void writeShort(int val)
throws IOException
writeShort in interface DataOutputwriteShort in class ObjectOutputStreamIOExceptionpublic void writeChar(int val)
throws IOException
writeChar in interface DataOutputwriteChar in class ObjectOutputStreamIOExceptionpublic void writeInt(int val)
throws IOException
writeInt in interface DataOutputwriteInt in class ObjectOutputStreamIOExceptionpublic void writeLong(long val)
throws IOException
writeLong in interface DataOutputwriteLong in class ObjectOutputStreamIOExceptionpublic void writeFloat(float val)
throws IOException
writeFloat in interface DataOutputwriteFloat in class ObjectOutputStreamIOExceptionpublic void writeDouble(double val)
throws IOException
writeDouble in interface DataOutputwriteDouble in class ObjectOutputStreamIOExceptionpublic void writeBytes(String str) throws IOException
writeBytes in interface DataOutputwriteBytes in class ObjectOutputStreamIOExceptionpublic void writeChars(String str) throws IOException
writeChars in interface DataOutputwriteChars in class ObjectOutputStreamIOExceptionpublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputwriteUTF in class ObjectOutputStreamIOExceptionpublic Object smartClone(Object obj) throws IOException
IOExceptionpublic Object smartClone(Object obj, SafeCloningRepository safeToReuse) throws IOException
IOExceptionpublic Object smartClone(Object obj, SafeCloningRepository safeToReuse, ClassLoader loader) throws IOException
IOExceptionCopyright © 2011-2012 Ovea. All Rights Reserved.