public class SortedSetExternalizer<T extends SortedSet<Object>> extends Object implements Externalizer<T>
SortedSet.
Requires additional serialization of the comparator.| Modifier and Type | Class and Description |
|---|---|
static class |
SortedSetExternalizer.ConcurrentSkipListSetExternalizer |
static class |
SortedSetExternalizer.TreeSetExternalizer |
| 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 set)
Writes the object reference to the stream.
|
public void writeObject(ObjectOutput output, T set) throws IOException
ExternalizerwriteObject in interface Externalizer<T extends SortedSet<Object>>output - the object output to write toset - the object reference to writeIOException - if an I/O error occurspublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
ExternalizerExternalizer.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 SortedSet<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()
ExternalizergetTargetClass in interface Externalizer<T extends SortedSet<Object>>Copyright © 2021 JBoss by Red Hat. All rights reserved.