パッケージ jcifs.netbios
クラス UniAddress
- java.lang.Object
-
- jcifs.netbios.UniAddress
-
- すべての実装されたインタフェース:
Address
public class UniAddress extends Object implements Address
Under normal conditions it is not necessary to use this class to use jCIFS properly. Name resolusion is handled internally to the
jcifs.smbpackage.This class is a wrapper for both
NbtAddressandInetAddress. The name resolution mechanisms used will systematically query all available configured resolution services including WINS, broadcasts, DNS, and LMHOSTS. See Setting Name Resolution Properties and thejcifs.resolveOrderproperty. Changing jCIFS name resolution properties can greatly affect the behavior of the client and may be necessary for proper operation.This class should be used in favor of InetAddress to resolve hostnames on LANs and WANs that support a mixture of NetBIOS/WINS and DNS resolvable hosts.
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 UniAddress(Object addr)Create a UniAddress by wrapping an InetAddress or NbtAddress.
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 booleanequals(Object obj)Compare two addresses for equality.StringfirstCalledName()Guess first called name to try for session establishment.ObjectgetAddress()Return the underlying NbtAddress or InetAddress.StringgetHostAddress()Return the IP address as text such as "192.168.1.15".StringgetHostName()Return the hostname of this address such as "MYCOMPUTER".inthashCode()Return the IP address of this address as a 32 bit integer.static booleanisDotQuadIP(String hostname)Check whether a hostname is actually an ip addressStringnextCalledName(CIFSContext tc)Guess next called name to try for session establishment.InetAddresstoInetAddress()StringtoString()Return the a text representation of this address such as MYCOMPUTER/192.168.1.15.<T extends Address>
Tunwrap(Class<T> type)
-
-
-
コンストラクタの詳細
-
UniAddress
public UniAddress(Object addr)
Create a UniAddress by wrapping an InetAddress or NbtAddress.- パラメータ:
addr- wrapped address
-
-
メソッドの詳細
-
isDotQuadIP
public static boolean isDotQuadIP(String hostname)
Check whether a hostname is actually an ip address- パラメータ:
hostname-- 戻り値:
- whether this is an IP address
-
hashCode
public int hashCode()
Return the IP address of this address as a 32 bit integer.
-
equals
public boolean equals(Object obj)
Compare two addresses for equality. Two UniAddresss are equal if they are both UniAddress' and refer to the same IP address.
-
firstCalledName
public String firstCalledName()
Guess first called name to try for session establishment. This method is used exclusively by the jcifs.smb package.- 定義:
firstCalledNameインタフェース内Address- 戻り値:
- the guessed name
-
nextCalledName
public String nextCalledName(CIFSContext tc)
Guess next called name to try for session establishment. This method is used exclusively by the jcifs.smb package.- 定義:
nextCalledNameインタフェース内Address- パラメータ:
tc- context to use- 戻り値:
- guessed alternate name
-
getAddress
public Object getAddress()
Return the underlying NbtAddress or InetAddress.- 戻り値:
- wrapped address
-
getHostName
public String getHostName()
Return the hostname of this address such as "MYCOMPUTER".- 定義:
getHostNameインタフェース内Address- 戻り値:
- the hostname associated with the address
-
getHostAddress
public String getHostAddress()
Return the IP address as text such as "192.168.1.15".- 定義:
getHostAddressインタフェース内Address- 戻り値:
- the ip address
-
toInetAddress
public InetAddress toInetAddress() throws UnknownHostException
- 定義:
toInetAddressインタフェース内Address- 戻り値:
- this address as an InetAddress
- 例外:
UnknownHostException- 関連項目:
Address.toInetAddress()
-
unwrap
public <T extends Address> T unwrap(Class<T> type)
- 定義:
unwrapインタフェース内Address- 戻り値:
- instance for type, null if the type cannot be unwrapped
- 関連項目:
Address.unwrap(java.lang.Class)
-
-