public class MapEntryExternalizer<T extends Map.Entry<Object,Object>> extends Object implements Externalizer<T>
Modifier and Type | Class and Description |
---|---|
static class |
MapEntryExternalizer.SimpleEntryExternalizer |
static class |
MapEntryExternalizer.SimpleImmutableEntryExternalizer |
Modifier and Type | Method and Description |
---|---|
Class<? extends T> |
getTargetClass()
Returns the target class of the object to externalize.
|
T |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
T entry)
Writes the object reference to the stream.
|
public void writeObject(ObjectOutput output, T entry) throws IOException
Externalizer
writeObject
in interface Externalizer<T extends Map.Entry<Object,Object>>
output
- the object output to write toentry
- the object reference to writeIOException
- if an I/O error occurspublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
Externalizer
Externalizer.writeObject(ObjectOutput, Object)
method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.readObject
in interface Externalizer<T extends Map.Entry<Object,Object>>
input
- the object input from which to readIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundpublic Class<? extends T> getTargetClass()
Externalizer
getTargetClass
in interface Externalizer<T extends Map.Entry<Object,Object>>
Copyright © 2018 JBoss by Red Hat. All rights reserved.