public final class ServletCompletedFileUpload
extends java.lang.Object
implements io.micronaut.http.multipart.CompletedFileUpload
CompletedFileUpload
that backs on a Servlet part.Constructor and Description |
---|
ServletCompletedFileUpload(javax.servlet.http.Part part)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getByteBuffer() |
byte[] |
getBytes() |
java.util.Optional<io.micronaut.http.MediaType> |
getContentType() |
long |
getDefinedSize() |
java.lang.String |
getFilename() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
long |
getSize() |
boolean |
isComplete() |
public ServletCompletedFileUpload(javax.servlet.http.Part part)
part
- The partpublic java.util.Optional<io.micronaut.http.MediaType> getContentType()
getContentType
in interface io.micronaut.http.multipart.FileUpload
getContentType
in interface io.micronaut.http.multipart.PartData
public java.lang.String getName()
getName
in interface io.micronaut.http.multipart.CompletedPart
getName
in interface io.micronaut.http.multipart.FileUpload
public java.lang.String getFilename()
getFilename
in interface io.micronaut.http.multipart.FileUpload
public long getSize()
getSize
in interface io.micronaut.http.multipart.FileUpload
public long getDefinedSize()
getDefinedSize
in interface io.micronaut.http.multipart.FileUpload
public boolean isComplete()
isComplete
in interface io.micronaut.http.multipart.FileUpload
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface io.micronaut.http.multipart.PartData
java.io.IOException
public byte[] getBytes() throws java.io.IOException
getBytes
in interface io.micronaut.http.multipart.PartData
java.io.IOException
public java.nio.ByteBuffer getByteBuffer() throws java.io.IOException
getByteBuffer
in interface io.micronaut.http.multipart.PartData
java.io.IOException