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 StringgetContentType()The content type of the avatar, e.g., "image/png"@NotNull InputStreamopen()Provides anInputStreamto 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 anInputStreamto read the avatar. Each call to this method will produce a new stream.- Specified by:
openin interfaceInputSupplier<InputStream>- Returns:
- a stream from the avatar
- Throws:
IOException- in case the avatar could not be opened or read
-
-