2 package org
.de
.metux
.ip
;
4 public class IPAddress
extends IPAddr
6 public IPAddress(String str
)
11 package org
.de
.metux
.util
;
17 /* a little workaround against missing regex in current libgcj */
18 public static String
[] split(String str
)
20 StringTokenizer tok
= new StringTokenizer(str
);
21 String
[] list
= new String
[tok
.countTokens()];
23 for (int x
=0; tok
.hasMoreTokens(); x
++)
24 list
[x
] = tok
.nextToken();
29 public static String
[] split(String str
, String delimiter
)
31 StringTokenizer tok
= new StringTokenizer(str
,delimiter
);
32 String
[] list
= new String
[tok
.countTokens()];
34 for (int x
=0; tok
.hasMoreTokens(); x
++)
35 list
[x
] = tok
.nextToken();