java.lang.Object | ||
↳ | com.atlassian.bitbucket.avatar.AbstractAvatarSupplier | |
↳ | com.atlassian.bitbucket.avatar.SimpleAvatarSupplier |
A simple implementation of AvatarSupplier
which accepts the InputStream
containing the avatar's
image data as a constructor parameter.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
SimpleAvatarStream with the specified contentType which will
return the provided InputStream . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the
InputStream provided when this supplier was constructed. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a new SimpleAvatarSupplier
which will return
the provided
InputStream
.
inputStream | the input stream for this supplier |
---|
NullPointerException | if the provided inputStream is null
|
---|
Constructs a new SimpleAvatarStream
with the specified contentType
which will
return
the provided InputStream
.
contentType | the declared content type for the avatar, which may be null if not known |
---|---|
inputStream | the input stream for this supplier |
NullPointerException | if the provided inputStream is null
|
---|
Retrieves the InputStream
provided when this supplier was constructed.