java.lang.Object
org.codelibs.jcifs.smb.netbios.Lmhosts
LMHOSTS file parser and NetBIOS name resolver.
This class provides functionality for resolving NetBIOS names using LMHOSTS files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByName(String host, CIFSContext tc) This is really just forUniAddress.
-
Constructor Details
-
Lmhosts
public Lmhosts()Default constructor for Lmhosts.
-
-
Method Details
-
getByName
This is really just forUniAddress. It does not throw anUnknownHostExceptionbecause this is queried frequently and exceptions would be rather costly to throw on a regular basis here.- Parameters:
host- the hostname to resolvetc- the CIFS context- Returns:
- resolved name, null if not found
-