Class FilePartAvatarSupplier
java.lang.Object
com.atlassian.bamboo.avatar.AbstractAvatarSupplier
com.atlassian.bamboo.plugins.rest.common.avatar.FilePartAvatarSupplier
- All Implemented Interfaces:
AvatarSupplier
,InputSupplier<InputStream>
-
Constructor Summary
ConstructorDescriptionFilePartAvatarSupplier
(@NotNull com.atlassian.plugins.rest.api.multipart.FilePart file) -
Method Summary
Modifier and TypeMethodDescription@NotNull InputStream
open()
Provides anInputStream
to read the avatar.Methods inherited from class com.atlassian.bamboo.avatar.AbstractAvatarSupplier
getContentType
-
Constructor Details
-
FilePartAvatarSupplier
public FilePartAvatarSupplier(@NotNull @NotNull com.atlassian.plugins.rest.api.multipart.FilePart file)
-
-
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
-