public interface File
<input
type="file">
element of the submitted form. May contain bytes in case the request in the multipart/form-data
format was constructed manually in a JavaScript code.Modifier and Type | Interface and Description |
---|---|
static class |
File.Builder
A builder of
File . |
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<byte[]> |
bytesValue()
Returns the file value as an array of bytes.
|
default java.lang.String |
contentType()
Returns a string that represents the content type determined by the file extension.
|
default java.lang.String |
name()
Returns a string that represents the file name.
|
static File.Builder |
newBuilder()
Creates a new
File builder. |
default java.util.Optional<java.lang.String> |
pathValue()
Returns the file value as a file path.
|
static File.Builder newBuilder()
File
builder.File.Builder
instancedefault java.lang.String name()
default java.lang.String contentType()
application/octet-stream
when there is no MIME type associated with the file
extension.default java.util.Optional<java.lang.String> pathValue()
default java.util.Optional<byte[]> bytesValue()