Module jcifs

Class Lmhosts

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

public class Lmhosts extends Object
Lmhosts file handling for NetBIOS name resolution.
  • Constructor Details

    • Lmhosts

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

    • getByName

      public static NbtAddress getByName(String host)
      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
      Returns:
      the resolved NbtAddress or null if not found