Module jcifs

Class Lmhosts

java.lang.Object
org.codelibs.jcifs.smb.netbios.Lmhosts

public class Lmhosts extends Object
LMHOSTS file parser and NetBIOS name resolver. This class provides functionality for resolving NetBIOS names using LMHOSTS files.
  • Constructor Details

    • Lmhosts

      public Lmhosts()
      Default constructor for Lmhosts.
  • Method Details

    • getByName

      public NbtAddress getByName(String host, CIFSContext tc)
      This is really just for UniAddress. It does not throw an UnknownHostException because this is queried frequently and exceptions would be rather costly to throw on a regular basis here.
      Parameters:
      host - the hostname to resolve
      tc - the CIFS context
      Returns:
      resolved name, null if not found