Interface FileValueBuilder
-
- All Superinterfaces:
TypedValueBuilder<FileValue>
- All Known Implementing Classes:
FileValueBuilderImpl
public interface FileValueBuilder extends TypedValueBuilder<FileValue>
- Since:
- 7.4
- Author:
- Ronny Bräunlich
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileValueBuilder
encoding(java.lang.String encoding)
Sets the encoding for the file in the value infos (optional).FileValueBuilder
encoding(java.nio.charset.Charset encoding)
Sets the encoding for the file in the value infos (optional).FileValueBuilder
file(byte[] bytes)
Sets the value to the specifiedByte
arrayFileValueBuilder
file(java.io.File file)
Sets the value to the specifiedFile
.FileValueBuilder
file(java.io.InputStream stream)
Sets the value to the specifiedInputStream
.FileValueBuilder
mimeType(java.lang.String mimeType)
Saves the MIME type of a file in the value infos.-
Methods inherited from interface org.camunda.bpm.engine.variable.value.builder.TypedValueBuilder
create, setTransient
-
-
-
-
Method Detail
-
mimeType
FileValueBuilder mimeType(java.lang.String mimeType)
Saves the MIME type of a file in the value infos.- Parameters:
mimeType
- the MIME type as string
-
file
FileValueBuilder file(java.io.File file)
Sets the value to the specifiedFile
.- See Also:
file(byte[])
,file(InputStream)
-
file
FileValueBuilder file(java.io.InputStream stream)
Sets the value to the specifiedInputStream
.- See Also:
file(byte[])
,file(File)
-
file
FileValueBuilder file(byte[] bytes)
Sets the value to the specifiedByte
array- See Also:
file(File)
,file(InputStream)
-
encoding
FileValueBuilder encoding(java.nio.charset.Charset encoding)
Sets the encoding for the file in the value infos (optional).- Parameters:
encoding
-- Returns:
-
encoding
FileValueBuilder encoding(java.lang.String encoding)
Sets the encoding for the file in the value infos (optional).- Parameters:
encoding
-- Returns:
-
-