public abstract class MapExternalizer<T extends Map<Object,Object>,C> extends Object implements Externalizer<T>
Map.| Modifier | Constructor and Description |
|---|---|
protected |
MapExternalizer(Class<?> targetClass,
Function<C,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
protected abstract C |
readContext(ObjectInput input)
Reads the map context from the specified input stream.
|
T |
readObject(ObjectInput input) |
protected abstract void |
writeContext(ObjectOutput output,
T map)
Writes the context of the specified map to the specified output stream.
|
void |
writeObject(ObjectOutput output,
T map) |
public void writeObject(ObjectOutput output, T map) throws IOException
writeObject in interface Externalizer<T extends Map<Object,Object>>IOExceptionpublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<T extends Map<Object,Object>>IOExceptionClassNotFoundExceptionpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T extends Map<Object,Object>>protected abstract void writeContext(ObjectOutput output, T map) throws IOException
output - an output streammap - the target mapIOException - if the constructor context cannot be written to the streamprotected abstract C readContext(ObjectInput input) throws IOException, ClassNotFoundException
input - an input streamIOException - if the constructor context cannot be read from the streamClassNotFoundException - if a class could not be foundCopyright © 2020 JBoss by Red Hat. All rights reserved.