KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Query


1 import jcifs.netbios.NbtAddress;
2 import jcifs.UniAddress;
3 import java.net.InetAddress JavaDoc;
4
5 public class Query {
6
7     public static void main( String JavaDoc argv[] ) throws Exception JavaDoc {
8         UniAddress ua;
9         String JavaDoc cn;
10
11         ua = UniAddress.getByName( argv[0] );
12
13         cn = ua.firstCalledName();
14         do {
15             System.out.println( "calledName=" + cn );
16         } while(( cn = ua.nextCalledName() ) != null );
17     }
18 }
19
Popular Tags