Changeset 34
- Timestamp:
- 07/06/07 14:41:40 (5 years ago)
- Files:
-
- 1 modified
-
trunk/pb/src/com/bbn/pb/Utils.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pb/src/com/bbn/pb/Utils.java
r4 r34 176 176 } 177 177 178 /* this function returns c if passed in a1.a2.....b.c i.e., the 179 last two dotted components */ 178 /* this function returns c if passed in a1.a2.....b.c */ 180 179 public static String getLastSuffix (String hostName) 181 180 { … … 184 183 } 185 184 185 /* this function returns the last two dotted components */ 186 186 187 public static String toDomainName (String hostName) 187 188 { 189 if (null== hostName) 190 return ""; 191 188 192 StringTokenizer s = new StringTokenizer (hostName, "."); 189 193 StringBuffer buf = new StringBuffer();
