public class InstantExternalizer extends Object implements Externalizer<Instant>
Constructor and Description |
---|
InstantExternalizer() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Instant> |
getTargetClass()
Returns the target class of the object to externalize.
|
Instant |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
Instant instant)
Writes the object reference to the stream.
|
public Class<? extends Instant> getTargetClass()
Externalizer
getTargetClass
in interface Externalizer<Instant>
public void writeObject(ObjectOutput output, Instant instant) throws IOException
Externalizer
writeObject
in interface Externalizer<Instant>
output
- the object output to write toinstant
- the object reference to writeIOException
- if an I/O error occurspublic Instant 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<Instant>
input
- the object input from which to readIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundCopyright © 2017 JBoss by Red Hat. All rights reserved.