changeset 151 | a8c2649cf277 |
150:75133486ba7e | 151:a8c2649cf277 |
---|---|
1 public class Unix { |
|
2 public static native int isUnixLink(String name); |
|
3 |
|
4 public static boolean isLink(String name) { |
|
5 if (isUnixLink(name) == 1) |
|
6 return true; |
|
7 return false; |
|
8 } |
|
9 |
|
10 static { |
|
11 try { |
|
12 System.loadLibrary("Unix"); |
|
13 } catch (UnsatisfiedLinkError ule) { |
|
14 ule.printStackTrace(); |
|
15 } |
|
16 } |
|
17 } |