Makefile added / pkg-config descriptor
[metux-java.git] / ip / IPAddress.java
blob622c0464fa284ebb05aca2e6bafe2822246bc720
2 package org.de.metux.ip;
4 public class IPAddress extends IPAddr
6 public IPAddress(String str)
7 {
11 package org.de.metux.util;
13 import java.util.*;
15 public class StrSplit
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();
26 return list;
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();
37 return list;