All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.antsr.core.NodeAddress
java.lang.Object
   |
   +----edu.utah.janos.antsr.core.NodeAddress

  Summary

public class  NodeAddress
     extends java.lang.Object
{
          // Constructors 1
     private NodeAddress();

          // Methods 3
     public static int fromString(String) throws AddressFormatException;
     public static final boolean multicast(int);
     public static final String toString(int);

}

Routines for manipulating node addresses. A node address is simply a 32 bit integer for efficiency, but these convenience routines exist to convert to and from printed representations and so on.

This is just here (in Janos) for compatiblity. All the functions are in the core.

Author:
David Wetherall




  Constructors

· NodeAddress

Summary  |  Top

   private NodeAddress() 

Insubstantiable



  Methods

· multicast

Summary  |  Top
   public static final boolean multicast(int a) 

Determine if the given integer address is a multicast address.



· toString

Summary  |  Top
   public static final String toString(int a) 

Generate a string representation of the given address. Generates standard dotted-quad notation.



· fromString

Summary  |  Top
   public static int fromString(String name)  throws AddressFormatException

Generate a 32-bit integer from the given string address. The string must be a dotted-quad.

Throws: Exception
if there aren't 4 parts, any of the 4 parts don't parse, or are out of range.


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7