public static TCPEndpoint readHostPortFormat(DataInput in) throws IOException {
  String host=in.readUTF();
  int port=in.readInt();
  return new TCPEndpoint(host,port);
}

public static TCPEndpoint readHostPortFormat ( DataInput in ) throws IOException { String host = in . readUTF ( ) ; int port = in . readInt ( ) ; return new TCPEndpoint ( host , port ) ; }
create a new endpoint from input stream data .
