public final class ProtocolV1ClassTable extends Object implements ClassTable
ClassTable.Writer
Modifier and Type | Field and Description |
---|---|
static ProtocolV1ClassTable |
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 static final ProtocolV1ClassTable INSTANCE
public ClassTable.Writer getClassWriter(Class<?> clazz) throws IOException
ClassTable
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
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 © 2018 JBoss by Red Hat. All rights reserved.