public String convertIPBackToString ( long ip ) { StringBuffer sb = new StringBuffer ( 16 ) ; sb . append ( Long . toString ( ( ip >> 24 ) & 0xFF ) ) ; sb . append ( ' ' ) ; sb . append ( Long . toString ( ( ip >> 16 ) & 0xFF ) ) ; sb . append ( ' ' ) ; sb . append ( Long . toString ( ( ip >> 8 ) & 0xFF ) ) ; sb . append ( ' ' ) ; sb . append ( Long . toString ( ip & 0xFF ) ) ; return sb . toString ( ) ; }
converts a long to a dot delimited IP address string .