SSF.OS.BGP4.Util
Class NHI

java.lang.Object
  |
  +--SSF.OS.BGP4.Util.NHI

public class NHI
extends java.lang.Object

Utilities for manipulating NHI addresses. The term "NH address" is used to mean an NHI address which does contains network and host identifiers, but no interface identifier.


Constructor Summary
NHI()
           
 
Method Summary
static int[] nh2array(java.lang.String nh)
          Given an NH address, returns the network and host identifiers in that address in an array of integers, in order (from left to right).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NHI

public NHI()
Method Detail

nh2array

public static int[] nh2array(java.lang.String nh)
Given an NH address, returns the network and host identifiers in that address in an array of integers, in order (from left to right). If the NH address is an empty string, an array of size zero is returned.

Parameters:
nh - The NH address.
Returns:
an array containing the identifiers in the NH address