public interface AvatarSupplier extends InputSupplier<InputStream>
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
The content type of the avatar, e.g., "image/png"
|
InputStream |
open()
Provides an
InputStream to read the avatar. |
@Nullable String getContentType()
@Nonnull InputStream open() throws IOException
InputStream
to read the avatar. Each call to this method will produce a new stream.open
in interface InputSupplier<InputStream>
IOException
- in case the avatar could not be opened or readCopyright © 2019 Atlassian. All rights reserved.