Package com.atlassian.bamboo.avatar
Interface AvatarSupplier
- All Superinterfaces:
InputSupplier<InputStream>
- All Known Subinterfaces:
CacheableAvatarSupplier
- All Known Implementing Classes:
AbstractAvatarSupplier
,DelegatingCacheableAvatarSupplier
,FilePartAvatarSupplier
,ResourceAvatarSupplier
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
The content type of the avatar, e.g., "image/png"@NotNull InputStream
open()
Provides anInputStream
to read the avatar.
-
Method Details
-
getContentType
The content type of the avatar, e.g., "image/png"- Returns:
- the string representing the content type
-
open
Provides anInputStream
to read the avatar. Each call to this method will produce a new stream.- Specified by:
open
in interfaceInputSupplier<InputStream>
- Returns:
- a stream from the avatar
- Throws:
IOException
- in case the avatar could not be opened or read
-