public class EnumExternalizer<E extends Enum<E>> extends Object implements Externalizer<E>
Externalizer for enumerations.| Constructor and Description |
|---|
EnumExternalizer(Class<E> enumClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<E> |
getTargetClass() |
E |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
E value) |
public void writeObject(ObjectOutput output, E value) throws IOException
writeObject in interface Externalizer<E extends Enum<E>>IOExceptionpublic E readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<E extends Enum<E>>IOExceptionClassNotFoundExceptionpublic Class<E> getTargetClass()
getTargetClass in interface Externalizer<E extends Enum<E>>Copyright © 2019 JBoss by Red Hat. All rights reserved.