public class ChainingClassTable extends java.lang.Object implements ClassTable
ClassTable.Writer| Modifier and Type | Field and Description |
|---|---|
private ClassTable[] |
readers |
private java.util.List<Pair<ClassTable,ClassTable.Writer>> |
writers |
| 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.
|
private static Pair<ClassTable,ClassTable.Writer> |
pair(ClassTable classTable,
ClassTable.Writer writer) |
java.lang.Class<?> |
readClass(Unmarshaller unmarshaller)
Read a class from the stream.
|
private final java.util.List<Pair<ClassTable,ClassTable.Writer>> writers
private final ClassTable[] readers
public ChainingClassTable(ClassTable[] classTables)
classTables - the class tables to delegate toprivate static Pair<ClassTable,ClassTable.Writer> pair(ClassTable classTable, ClassTable.Writer writer)
public ClassTable.Writer getClassWriter(java.lang.Class<?> clazz) throws java.io.IOException
getClassWriter in interface ClassTableclazz - 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 ClassTableunmarshaller - the unmarshaller to read fromjava.io.IOException - if an I/O error occursjava.lang.ClassNotFoundException - if a class could not be found