Package com.atlassian.bamboo.avatar
Interface AvatarSupplier
-
- All Superinterfaces:
InputSupplier<InputStream>
- All Known Subinterfaces:
CacheableAvatarSupplier
- All Known Implementing Classes:
AbstractAvatarSupplier
,DelegatingCacheableAvatarSupplier
,FilePartAvatarSupplier
,ResourceAvatarSupplier
public interface AvatarSupplier extends InputSupplier<InputStream>
- Since:
- 9.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable String
getContentType()
The content type of the avatar, e.g., "image/png"@NotNull InputStream
open()
Provides anInputStream
to read the avatar.
-
-
-
Method Detail
-
getContentType
@Nullable @Nullable String getContentType()
The content type of the avatar, e.g., "image/png"- Returns:
- the string representing the content type
-
open
@NotNull @NotNull InputStream open() throws IOException
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
-
-