access-europe / jfavicon

JFavicon is a simple library for finding the URLs of favicons.

Home Page:http://www.zachklipp.com/jfavicon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JFavicon Build Status

JFavicon is a simple library for finding the URLs of favicons.

The correct way for a page to define its favicon is with a link element in the head. However, not all pages do this, so if there are no link elements, the root is checked for files like favicon.ico (see Source for which extensions are checked).

new FaviconLoader().getFavicons("http://www.wikipedia.com", new FaviconCallback() {
  @Override public void onFaviconsLoaded(Set<URL> favicons) {
    for (URL fav : favicons) {
      System.out.println(fav);
    }
  }
});

About

JFavicon is a simple library for finding the URLs of favicons.

http://www.zachklipp.com/jfavicon

License:Apache License 2.0


Languages

Language:Java 100.0%