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 FileValueBuilderencoding(String encoding)Sets the encoding for the file in the value infos (optional).FileValueBuilderencoding(Charset encoding)Sets the encoding for the file in the value infos (optional).FileValueBuilderfile(byte[] bytes)Sets the value to the specifiedBytearrayFileValueBuilderfile(File file)Sets the value to the specifiedFile.FileValueBuilderfile(InputStream stream)Sets the value to the specifiedInputStream.FileValueBuildermimeType(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(String mimeType)
Saves the MIME type of a file in the value infos.- Parameters:
mimeType- the MIME type as string
-
file
FileValueBuilder file(File file)
Sets the value to the specifiedFile.- See Also:
file(byte[]),file(InputStream)
-
file
FileValueBuilder file(InputStream stream)
Sets the value to the specifiedInputStream.- See Also:
file(byte[]),file(File)
-
file
FileValueBuilder file(byte[] bytes)
Sets the value to the specifiedBytearray- See Also:
file(File),file(InputStream)
-
encoding
FileValueBuilder encoding(Charset encoding)
Sets the encoding for the file in the value infos (optional).- Parameters:
encoding-- Returns:
-
encoding
FileValueBuilder encoding(String encoding)
Sets the encoding for the file in the value infos (optional).- Parameters:
encoding-- Returns:
-
-