public class SimpleAvatarSupplier extends AbstractAvatarSupplier
AvatarSupplier
which accepts the InputStream
containing the avatar's
image data as a constructor parameter.Constructor and Description |
---|
SimpleAvatarSupplier(InputStream inputStream)
|
SimpleAvatarSupplier(String contentType,
InputStream inputStream)
Constructs a new
SimpleAvatarStream with the specified contentType which will
return the provided InputStream . |
Modifier and Type | Method and Description |
---|---|
InputStream |
open()
Retrieves the
InputStream provided when this supplier was constructed. |
getContentType
public SimpleAvatarSupplier(@Nonnull InputStream inputStream)
inputStream
- the input stream for this supplierNullPointerException
- if the provided inputStream
is null
public SimpleAvatarSupplier(String contentType, @Nonnull InputStream inputStream)
SimpleAvatarStream
with the specified contentType
which will
return
the provided InputStream
.contentType
- the declared content type for the avatar, which may be null
if not knowninputStream
- the input stream for this supplierNullPointerException
- if the provided inputStream
is null
@Nonnull public InputStream open()
InputStream
provided when this supplier was constructed.Copyright © 2020 Atlassian. All rights reserved.