Package org.mcpjava.server.content
Interface ImageContent
- All Superinterfaces:
ContentBlock,MetaCarrier
Image data content
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating image contents -
Method Summary
Modifier and TypeMethodDescriptionOptional annotations for the clientstatic ImageContent.BuilderCreates a new builder for anImageContentbyte[]data()Returns the image datamimeType()Returns the MIME type of the image datastatic ImageContentCreates a newImageContentMethods inherited from interface org.mcpjava.server.MetaCarrier
metadata
-
Method Details
-
data
byte[] data()Returns the image data- Returns:
- the image data as a byte array
-
mimeType
String mimeType()Returns the MIME type of the image data- Returns:
- the MIME type
-
annotations
Optional<Annotations> annotations()Optional annotations for the client- Returns:
- the annotations
-
builder
Creates a new builder for anImageContent- Parameters:
data- the image datamimeType- the MIME type of the image data- Returns:
- the image content builder
-
of
Creates a newImageContent- Parameters:
data- the image datamimeType- the MIME type of the image data- Returns:
- the new image content
-