public class ObjectExternalizer<T> extends Object implements Externalizer<T>
Externalizer for object wrapper externalization.| Constructor and Description |
|---|
ObjectExternalizer(Class<T> targetClass,
Function<Object,T> reader,
Function<T,Object> writer) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
T object) |
public void writeObject(ObjectOutput output, T object) throws IOException
writeObject in interface Externalizer<T>IOExceptionpublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<T>IOExceptionClassNotFoundExceptionpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T>Copyright © 2018 JBoss by Red Hat. All rights reserved.