Class PartData
java.lang.Object
io.micronaut.http.multipart.PartData
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()The field metadata (name, file name, etc.).Gets the content of this chunk as aByteBuffer.byte[]getBytes()Gets the content of this chunk as abyte[].Gets the content type of this chunk.Gets the content of this chunk as anInputStream.The field bytes.toString()
-
Constructor Details
-
PartData
- Parameters:
fieldMetadata- The field metadata (name, file name, etc.)readBuffer- The buffered part data
-
-
Method Details
-
getInputStream
Gets the content of this chunk as anInputStream.- Returns:
- The content of this chunk as an
InputStream
-
getBytes
public byte[] getBytes()Gets the content of this chunk as abyte[].- Returns:
- The content of this chunk as a
byte[]
-
getByteBuffer
Gets the content of this chunk as aByteBuffer.- Returns:
- The content of this chunk as a
ByteBuffer
-
getContentType
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
fieldMetadata
The field metadata (name, file name, etc.).- Returns:
- The field metadata
-
readBuffer
-
toString
-