code: public static NetworkInterface getByName(String name) throws SocketException {
          if (name == null)
              throw new NullPointerException();
          return getByName0(name);
      }
docs: Searches for the network interface with the specified name.
  
  @param   name
  The name of the network interface.
  
  @return  A <tt>NetworkInterface</tt> with the specified name,
  or <tt>null</tt> if there is no network interface
  with the specified name.
  
  @throws  SocketException
  If an I/O error occurs.
  
  @throws  NullPointerException
  If the specified name is <tt>null</tt>.