@ Override public boolean isLoopbackAddress ( ) { byte test = 0x00 ; for ( int i = 0 ; i < 15 ; i ++ ) { test |= ipaddress [ i ] ; } return ( test == 0x00 ) && ( ipaddress [ 15 ] == 0x01 ) ; }
Utility routine to check if the InetAddress is a loopback address .