示例#1
0
  public HostInfo(InetAddress address, String name) {
    super();

    String SLevel = System.getProperty("jmdns.debug");
    if (SLevel == null) SLevel = "INFO";
    logger.setLevel(Level.parse(SLevel));

    this.address = address;
    this.name = name;
    if (address != null) {
      try {
        interfaze = NetworkInterface.getByInetAddress(address);
      } catch (Exception exception) {
        // FIXME Shouldn't we take an action here?
        logger.log(Level.WARNING, "LocalHostInfo() exception ", exception);
      }
    }
  }