Record Class UploadToolUtils.FetchedContent
java.lang.Object
java.lang.Record
io.meeds.mcp.server.tool.util.UploadToolUtils.FetchedContent
- Enclosing class:
UploadToolUtils
-
Constructor Summary
ConstructorsConstructorDescriptionFetchedContent(byte[] bytes, String mimeType, String fileName) Creates an instance of aFetchedContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.booleanCompares by content: the bytes are an array.fileName()Returns the value of thefileNamerecord component.inthashCode()Hashes by content, the bytes included.mimeType()Returns the value of themimeTyperecord component.toString()Describes the content by its size, type and name, never its bytes.
-
Constructor Details
-
FetchedContent
-
-
Method Details
-
equals
-
hashCode
-
toString
-
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-