Package com.atlassian.bamboo.avatar
Class ResourceAvatarSupplier
java.lang.Object
com.atlassian.bamboo.avatar.AbstractAvatarSupplier
com.atlassian.bamboo.avatar.ResourceAvatarSupplier
- All Implemented Interfaces:
AvatarSupplier
,InputSupplier<InputStream>
An
AvatarSupplier
implementation which supplies an avatar from a classpath resource.- Since:
- 9.5
-
Constructor Summary
ConstructorDescriptionResourceAvatarSupplier
(String path) ResourceAvatarSupplier
(String contentType, String path) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.ClassPathResource
@NotNull InputStream
open()
Provides anInputStream
to read the avatar.Methods inherited from class com.atlassian.bamboo.avatar.AbstractAvatarSupplier
getContentType
-
Constructor Details
-
ResourceAvatarSupplier
-
ResourceAvatarSupplier
-
-
Method Details
-
open
Description copied from interface:AvatarSupplier
Provides anInputStream
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
-
getResource
public org.springframework.core.io.ClassPathResource getResource()
-