パッケージ jcifs.netbios

クラス NameServiceClientImpl

    • コンストラクタの詳細

      • NameServiceClientImpl

        public NameServiceClientImpl​(CIFSContext tc)
        パラメータ:
        tc -
    • メソッドの詳細

      • run

        public void run()
        定義:
        run インタフェース内 Runnable
      • getNbtByName

        public NbtAddress getNbtByName​(String host)
                                throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Determines the address of a host given it's host name. The name can be a NetBIOS name like "freto" or an IP address like "192.168.1.15". It cannot be a DNS name; the analygous UniAddress or InetAddress getByName methods can be used for that.
        定義:
        getNbtByName インタフェース内 NameServiceClient
        パラメータ:
        host - hostname to resolve
        戻り値:
        the resolved address
        例外:
        UnknownHostException - if there is an error resolving the name
      • getNbtByName

        public NbtAddress getNbtByName​(String host,
                                       int type,
                                       String scope)
                                throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Determines the address of a host given it's host name. NetBIOS names also have a type. Types(aka Hex Codes) are used to distinguish the various services on a host. Here is a fairly complete list of NetBIOS hex codes. Scope is not used but is still functional in other NetBIOS products and so for completeness it has been implemented. A scope of null or "" signifies no scope.
        定義:
        getNbtByName インタフェース内 NameServiceClient
        パラメータ:
        host - the name to resolve
        type - the hex code of the name
        scope - the scope of the name
        戻り値:
        the resolved address
        例外:
        UnknownHostException - if there is an error resolving the name
      • getNbtByName

        public NbtAddress getNbtByName​(String host,
                                       int type,
                                       String scope,
                                       InetAddress svr)
                                throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Determines the address of a host given it's host name. NetBIOS names also have a type. Types(aka Hex Codes) are used to distinguish the various services on a host. Here is a fairly complete list of NetBIOS hex codes. Scope is not used but is still functional in other NetBIOS products and so for completeness it has been implemented. A scope of null or "" signifies no scope. The additional svr parameter specifies the address to query. This might be the address of a specific host, a name server, or a broadcast address.
        定義:
        getNbtByName インタフェース内 NameServiceClient
        パラメータ:
        host - the name to resolve
        type - the hex code of the name
        scope - the scope of the name
        svr - server to query
        戻り値:
        the resolved address
        例外:
        UnknownHostException - if there is an error resolving the name
      • getNbtAllByAddress

        public NbtAddress[] getNbtAllByAddress​(String host)
                                        throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Retrieve all addresses of a host by it's address. NetBIOS hosts can have many names for a given IP address. The name and IP address make the NetBIOS address. This provides a way to retrieve the other names for a host with the same IP address.
        定義:
        getNbtAllByAddress インタフェース内 NameServiceClient
        パラメータ:
        host - hostname to lookup all addresses for
        戻り値:
        resolved addresses
        例外:
        UnknownHostException - if there is an error resolving the name
      • getNbtAllByAddress

        public NbtAddress[] getNbtAllByAddress​(NetbiosAddress addr)
                                        throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Retrieve all addresses of a host by it's address. NetBIOS hosts can have many names for a given IP address. The name and IP address make the NetBIOS address. This provides a way to retrieve the other names for a host with the same IP address.
        定義:
        getNbtAllByAddress インタフェース内 NameServiceClient
        パラメータ:
        addr - the address to query
        戻り値:
        resolved addresses
        例外:
        UnknownHostException - if address cannot be resolved
      • getWINSAddress

        protected InetAddress getWINSAddress()
        パラメータ:
        tc -
        戻り値:
        address of active WINS server
      • isWINS

        protected boolean isWINS​(InetAddress svr)
        パラメータ:
        svr -
        戻り値:
        whether the given address is a WINS server
      • getByName

        public UniAddress getByName​(String hostname)
                             throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Determines the address of a host given it's host name. The name can be a machine name like "jcifs.samba.org", or an IP address like "192.168.1.15".
        定義:
        getByName インタフェース内 NameServiceClient
        パラメータ:
        hostname - NetBIOS or DNS hostname to resolve
        戻り値:
        the found address
        例外:
        UnknownHostException - if there is an error resolving the name
      • getByName

        public UniAddress getByName​(String hostname,
                                    boolean possibleNTDomainOrWorkgroup)
                             throws UnknownHostException
        インタフェースからコピーされた説明: NameServiceClient
        Lookup hostname and return it's UniAddress. If the possibleNTDomainOrWorkgroup parameter is true an additional name query will be performed to locate a master browser.
        定義:
        getByName インタフェース内 NameServiceClient
        戻り値:
        the first resolved address
        例外:
        UnknownHostException
      • getLmhosts

        public Lmhosts getLmhosts()
        戻り値:
        lmhosts file used