public class ChainingClassTable extends java.lang.Object implements ClassTable
ClassTable.Writer
Constructor and Description |
---|
ChainingClassTable(ClassTable[] classTables)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ClassTable.Writer |
getClassWriter(java.lang.Class<?> clazz)
Determine whether the given class reference is a valid predefined reference.
|
java.lang.Class<?> |
readClass(Unmarshaller unmarshaller)
Read a class from the stream.
|
public ChainingClassTable(ClassTable[] classTables)
classTables
- the class tables to delegate topublic ClassTable.Writer getClassWriter(java.lang.Class<?> clazz) throws java.io.IOException
getClassWriter
in interface ClassTable
clazz
- the candidate classnull
to use the default mechanismjava.io.IOException
- if an I/O error occurspublic java.lang.Class<?> readClass(Unmarshaller unmarshaller) throws java.io.IOException, java.lang.ClassNotFoundException
ClassTable.getClassWriter(Class)
method's Writer
instance, as defined above.readClass
in interface ClassTable
unmarshaller
- the unmarshaller to read fromjava.io.IOException
- if an I/O error occursjava.lang.ClassNotFoundException
- if a class could not be foundCopyright © 2011 JBoss, a division of Red Hat, Inc.