public final class Favicon extends Object
Constructor and Description |
---|
Favicon(String base64Url)
Directly create a favicon using its Base64 URL directly.
|
Modifier and Type | Method and Description |
---|---|
static Favicon |
create(BufferedImage image)
Creates a new
Favicon from the specified image . |
static Favicon |
create(Path path)
Creates a new
Favicon by reading the image from the specified path . |
boolean |
equals(@Nullable Object o) |
String |
getBase64Url()
Returns the Base64-encoded URI for this image.
|
int |
hashCode() |
String |
toString() |
public Favicon(String base64Url)
base64Url
- the url for use with this faviconpublic String getBase64Url()
public static Favicon create(BufferedImage image)
Favicon
from the specified image
.image
- the image to use for the faviconFavicon
instancepublic static Favicon create(Path path) throws IOException
Favicon
by reading the image from the specified path
.path
- the path to the image to create a favicon forFavicon
instanceIOException
- if the file could not be read from the path