public interface

AvatarSupplier

implements InputSupplier<T>
com.atlassian.bitbucket.avatar.AvatarSupplier
Known Indirect Subclasses

Summary

Public Methods
@Nullable String getContentType()
The content type of the avatar, e.g., "image/png"
@Nonnull InputStream open()
Provides an InputStream to read the avatar.
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.io.InputSupplier

Public Methods

@Nullable public String getContentType ()

The content type of the avatar, e.g., "image/png"

Returns
  • the string representing the content type

@Nonnull public InputStream open ()

Provides an InputStream to read the avatar. Each call to this method will produce a new stream.

Returns
  • a stream from the avatar
Throws
IOException in case the avatar could not be opened or read