org.mpisws.p2p.transport.simpleidentity
Class PortSerializer

java.lang.Object
  extended by 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

Constructor Summary
PortSerializer()
           
 
Method Summary
 InetSocketAddress deserialize(InputBuffer b, InetSocketAddress i, Map<String,Object> options)
           
 void serialize(InetSocketAddress i, OutputBuffer b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortSerializer

public PortSerializer()
Method Detail

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.