public class Libravatar extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
download()
Performs the avatar download by searching for a domain specific server and then on the libravatar public service
|
byte[] |
downloadArray()
Performs the avatar download by searching for a domain specific server and then on the libravatar public service
|
static Libravatar |
from(String email)
Construct new libravatar downloader for the provided email
|
Libravatar |
withOptions(LibravatarOptions options)
Adds he options to be used for download
|
public static Libravatar from(String email)
email - the email addresspublic Libravatar withOptions(LibravatarOptions options)
options - the libravatar optionspublic byte[] downloadArray()
throws LibravatarException
LibravatarException - if no default has been set in options (LibravatarOptions.defaultingTo(LibravatarDefaultImage)) and the image hasn't found on remote serverpublic InputStream download() throws LibravatarException
LibravatarException - if no default has been set in options (LibravatarOptions.defaultingTo(LibravatarDefaultImage)) and the image hasn't found on remote serverCopyright © 2021. All Rights Reserved.