public interface FileValueBuilder extends TypedValueBuilder<FileValue>
| Modifier and Type | Method and Description |
|---|---|
FileValueBuilder |
encoding(Charset encoding)
Sets the encoding for the file in the value infos (optional).
|
FileValueBuilder |
encoding(String encoding)
Sets the encoding for the file in the value infos (optional).
|
FileValueBuilder |
file(byte[] bytes)
Sets the value to the specified
Byte array |
FileValueBuilder |
file(File file)
Sets the value to the specified
File. |
FileValueBuilder |
file(InputStream stream)
Sets the value to the specified
InputStream. |
FileValueBuilder |
mimeType(String mimeType)
Saves the MIME type of a file in the value infos.
|
create, setTransientFileValueBuilder mimeType(String mimeType)
mimeType - the MIME type as stringFileValueBuilder file(File file)
File.file(byte[]),
file(InputStream)FileValueBuilder file(InputStream stream)
InputStream.file(byte[]),
file(File)FileValueBuilder file(byte[] bytes)
Byte arrayfile(File),
file(InputStream)FileValueBuilder encoding(Charset encoding)
encoding - FileValueBuilder encoding(String encoding)
encoding - Copyright © 2021. All rights reserved.