org.mpisws.p2p.transport.simpleidentity
Class PortSerializer
java.lang.Object
org.mpisws.p2p.transport.simpleidentity.PortSerializer
- All Implemented Interfaces:
- Serializer<InetSocketAddress>
public class PortSerializer
- extends Object
- implements Serializer<InetSocketAddress>
Converts the ephemeral port to the normal port.
- Author:
- Jeff Hoye
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortSerializer
public PortSerializer()
deserialize
public InetSocketAddress deserialize(InputBuffer b,
InetSocketAddress i,
Map<String,Object> options)
throws IOException
- Specified by:
deserialize in interface Serializer<InetSocketAddress>
- Throws:
IOException
serialize
public void serialize(InetSocketAddress i,
OutputBuffer b)
throws IOException
- Specified by:
serialize in interface Serializer<InetSocketAddress>
- Throws:
IOException
Copyright © 2010. All Rights Reserved.