Class EmbedImageImpl
- java.lang.Object
-
- org.javacord.core.entity.message.embed.EmbedImageImpl
-
- All Implemented Interfaces:
EmbedImage
public class EmbedImageImpl extends java.lang.Object implements EmbedImage
The implementation ofEmbedImage
.
-
-
Constructor Summary
Constructors Constructor Description EmbedImageImpl(com.fasterxml.jackson.databind.JsonNode data)
Creates a new embed image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.awt.image.BufferedImage>
asBufferedImage(DiscordApi api)
java.util.concurrent.CompletableFuture<byte[]>
asByteArray(DiscordApi api)
java.io.InputStream
asInputStream(DiscordApi api)
int
getHeight()
java.net.URL
getProxyUrl()
java.net.URL
getUrl()
int
getWidth()
-
-
-
Method Detail
-
getUrl
public java.net.URL getUrl()
- Specified by:
getUrl
in interfaceEmbedImage
-
getProxyUrl
public java.net.URL getProxyUrl()
- Specified by:
getProxyUrl
in interfaceEmbedImage
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfaceEmbedImage
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfaceEmbedImage
-
asBufferedImage
public java.util.concurrent.CompletableFuture<java.awt.image.BufferedImage> asBufferedImage(DiscordApi api)
- Specified by:
asBufferedImage
in interfaceEmbedImage
-
asByteArray
public java.util.concurrent.CompletableFuture<byte[]> asByteArray(DiscordApi api)
- Specified by:
asByteArray
in interfaceEmbedImage
-
asInputStream
public java.io.InputStream asInputStream(DiscordApi api) throws java.io.IOException
- Specified by:
asInputStream
in interfaceEmbedImage
- Throws:
java.io.IOException
-
-