|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.marshalling.reflect.SerializableClass
public final class SerializableClass
Reflection information about a serializable class. Intended for use by implementations of the Marshalling API.
| Field Summary | |
|---|---|
static SerializableField[] |
NOFIELDS
|
| Method Summary | |
|---|---|
void |
callReadObject(java.lang.Object object,
java.io.ObjectInputStream inputStream)
Invoke the readObject() method for an object. |
void |
callReadObjectNoData(java.lang.Object object)
Invoke the readObjectNoData() method for an object. |
java.lang.Object |
callReadResolve(java.lang.Object object)
Invoke the readResolve() method for an object. |
void |
callWriteObject(java.lang.Object object,
java.io.ObjectOutputStream outputStream)
Invoke the writeObject() method for an object. |
java.lang.Object |
callWriteReplace(java.lang.Object object)
Invoke the writeReplace() method for an object. |
long |
getEffectiveSerialVersionUID()
Get the effective serial version UID of this class. |
SerializableField[] |
getFields()
Get the serializable fields of this class. |
SerializableField |
getSerializableField(java.lang.String name,
java.lang.Class<?> fieldType,
boolean unshared)
Create a synthetic field for this object class. |
java.lang.Class<?> |
getSubjectClass()
Get the Class of this class. |
boolean |
hasReadObject()
Determine whether this class has a readObject() method. |
boolean |
hasReadObjectNoData()
Determine whether this class has a readObjectNoData() method. |
boolean |
hasReadResolve()
Determine whether this class has a readResolve() method. |
boolean |
hasWriteObject()
Determine whether this class has a writeObject() method. |
boolean |
hasWriteReplace()
Determine whether this class has a writeReplace() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SerializableField[] NOFIELDS
| Method Detail |
|---|
public SerializableField[] getFields()
public SerializableField getSerializableField(java.lang.String name,
java.lang.Class<?> fieldType,
boolean unshared)
throws java.lang.ClassNotFoundException
name - the name of the fieldfieldType - the field typeunshared - true if the field should be unshared
java.lang.ClassNotFoundException - if a class was not found while looking up the subject classpublic boolean hasWriteObject()
writeObject() method.
true if there is a writeObject() method
public void callWriteObject(java.lang.Object object,
java.io.ObjectOutputStream outputStream)
throws java.io.IOException
writeObject() method for an object.
object - the object to invoke onoutputStream - the object output stream to pass in
java.io.IOException - if an I/O error occurspublic boolean hasReadObject()
readObject() method.
true if there is a readObject() method
public void callReadObject(java.lang.Object object,
java.io.ObjectInputStream inputStream)
throws java.io.IOException,
java.lang.ClassNotFoundException
readObject() method for an object.
object - the object to invoke oninputStream - the object input stream to pass in
java.io.IOException - if an I/O error occurs
java.lang.ClassNotFoundException - if a class was not able to be loadedpublic boolean hasReadObjectNoData()
readObjectNoData() method.
true if there is a readObjectNoData() method
public void callReadObjectNoData(java.lang.Object object)
throws java.io.ObjectStreamException
readObjectNoData() method for an object.
object - the object to invoke on
java.io.ObjectStreamException - if an I/O error occurspublic boolean hasWriteReplace()
writeReplace() method.
true if there is a writeReplace() method
public java.lang.Object callWriteReplace(java.lang.Object object)
throws java.io.ObjectStreamException
writeReplace() method for an object.
object - the object to invoke on
java.io.ObjectStreamException - if an I/O error occurspublic boolean hasReadResolve()
readResolve() method.
true if there is a readResolve() method
public java.lang.Object callReadResolve(java.lang.Object object)
throws java.io.ObjectStreamException
readResolve() method for an object.
object - the object to invoke on
java.io.ObjectStreamException - if an I/O error occurspublic long getEffectiveSerialVersionUID()
public java.lang.Class<?> getSubjectClass()
throws java.lang.ClassNotFoundException
Class of this class.
java.lang.ClassNotFoundException - if the class was unloaded
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||