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