Package org.jboss.marshalling.serial
Class PlainDescriptor
- java.lang.Object
-
- org.jboss.marshalling.serial.Descriptor
-
- org.jboss.marshalling.serial.PlainDescriptor
-
- All Implemented Interfaces:
java.io.ObjectStreamConstants
,ExtendedObjectStreamConstants
class PlainDescriptor extends Descriptor implements java.io.ObjectStreamConstants
-
-
Field Summary
Fields Modifier and Type Field Description private SerializableField[]
fields
private int
flags
-
Fields inherited from interface org.jboss.marshalling.serial.ExtendedObjectStreamConstants
TC_CLASSTABLEDESC, TC_OBJECTTABLE
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PlainDescriptor(java.lang.Class<?> type, Descriptor parent, SerializableField[] fields, int flags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
defaultReadFields(SerialUnmarshaller serialUnmarshaller, java.lang.Object subject)
private void
doReadObject(SerialUnmarshaller serialUnmarshaller, SerializableClass sc, java.lang.Object subject)
(package private) java.io.ObjectInputStream.GetField
getField(SerialUnmarshaller serialUnmarshaller, SerializableClass sc)
SerializableField[]
getFields()
int
getFlags()
protected void
readSerial(SerialUnmarshaller serialUnmarshaller, SerializableClass sc, java.lang.Object subject)
-
Methods inherited from class org.jboss.marshalling.serial.Descriptor
getNearestType, getParent, getType
-
-
-
-
Field Detail
-
fields
private final SerializableField[] fields
-
flags
private final int flags
-
-
Constructor Detail
-
PlainDescriptor
protected PlainDescriptor(java.lang.Class<?> type, Descriptor parent, SerializableField[] fields, int flags)
-
-
Method Detail
-
getFields
public SerializableField[] getFields()
- Overrides:
getFields
in classDescriptor
-
getFlags
public int getFlags()
- Overrides:
getFlags
in classDescriptor
-
readSerial
protected void readSerial(SerialUnmarshaller serialUnmarshaller, SerializableClass sc, java.lang.Object subject) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readSerial
in classDescriptor
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
doReadObject
private void doReadObject(SerialUnmarshaller serialUnmarshaller, SerializableClass sc, java.lang.Object subject) throws java.lang.ClassNotFoundException, java.io.IOException
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
-
defaultReadFields
void defaultReadFields(SerialUnmarshaller serialUnmarshaller, java.lang.Object subject) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
getField
java.io.ObjectInputStream.GetField getField(SerialUnmarshaller serialUnmarshaller, SerializableClass sc) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-