Class FileValueBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.value.builder.FileValueBuilderImpl
-
- All Implemented Interfaces:
FileValueBuilder
,TypedValueBuilder<FileValue>
public class FileValueBuilderImpl extends Object implements FileValueBuilder
- Since:
- 7.4
- Author:
- Ronny Bräunlich
-
-
Field Summary
Fields Modifier and Type Field Description protected FileValueImpl
fileValue
-
Constructor Summary
Constructors Constructor Description FileValueBuilderImpl(String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileValue
create()
FileValueBuilder
encoding(String encoding)
Sets the encoding for the file in the value infos (optional).FileValueBuilder
encoding(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(File file)
Sets the value to the specifiedFile
.FileValueBuilder
file(InputStream stream)
Sets the value to the specifiedInputStream
.FileValueBuilder
mimeType(String mimeType)
Saves the MIME type of a file in the value infos.FileValueBuilder
setTransient(boolean isTransient)
-
-
-
Field Detail
-
fileValue
protected FileValueImpl fileValue
-
-
Constructor Detail
-
FileValueBuilderImpl
public FileValueBuilderImpl(String filename)
-
-
Method Detail
-
create
public FileValue create()
- Specified by:
create
in interfaceTypedValueBuilder<FileValue>
-
mimeType
public FileValueBuilder mimeType(String mimeType)
Description copied from interface:FileValueBuilder
Saves the MIME type of a file in the value infos.- Specified by:
mimeType
in interfaceFileValueBuilder
- Parameters:
mimeType
- the MIME type as string
-
file
public FileValueBuilder file(File file)
Description copied from interface:FileValueBuilder
Sets the value to the specifiedFile
.- Specified by:
file
in interfaceFileValueBuilder
- See Also:
FileValueBuilder.file(byte[])
,FileValueBuilder.file(InputStream)
-
file
public FileValueBuilder file(InputStream stream)
Description copied from interface:FileValueBuilder
Sets the value to the specifiedInputStream
.- Specified by:
file
in interfaceFileValueBuilder
- See Also:
FileValueBuilder.file(byte[])
,FileValueBuilder.file(File)
-
file
public FileValueBuilder file(byte[] bytes)
Description copied from interface:FileValueBuilder
Sets the value to the specifiedByte
array- Specified by:
file
in interfaceFileValueBuilder
- See Also:
FileValueBuilder.file(File)
,FileValueBuilder.file(InputStream)
-
encoding
public FileValueBuilder encoding(Charset encoding)
Description copied from interface:FileValueBuilder
Sets the encoding for the file in the value infos (optional).- Specified by:
encoding
in interfaceFileValueBuilder
- Returns:
-
encoding
public FileValueBuilder encoding(String encoding)
Description copied from interface:FileValueBuilder
Sets the encoding for the file in the value infos (optional).- Specified by:
encoding
in interfaceFileValueBuilder
- Returns:
-
setTransient
public FileValueBuilder setTransient(boolean isTransient)
- Specified by:
setTransient
in interfaceTypedValueBuilder<FileValue>
-
-