Class InetAddressExternalizer<A extends InetAddress>
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.net.InetAddressExternalizer<A>
-
- All Implemented Interfaces:
Externalizer<A>
public class InetAddressExternalizer<A extends InetAddress> extends Object implements Externalizer<A>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description InetAddressExternalizer(Class<A> targetClass, OptionalInt size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<A>getTargetClass()AreadObject(ObjectInput input)OptionalIntsize(A address)voidwriteObject(ObjectOutput output, A address)
-
-
-
Constructor Detail
-
InetAddressExternalizer
public InetAddressExternalizer(Class<A> targetClass, OptionalInt size)
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, A address) throws IOException
- Specified by:
writeObjectin interfaceExternalizer<A extends InetAddress>- Throws:
IOException
-
readObject
public A readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceExternalizer<A extends InetAddress>- Throws:
IOExceptionClassNotFoundException
-
getTargetClass
public Class<A> getTargetClass()
- Specified by:
getTargetClassin interfaceExternalizer<A extends InetAddress>
-
size
public OptionalInt size(A address)
- Specified by:
sizein interfaceExternalizer<A extends InetAddress>
-
-