Class FileValueBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.variable.impl.value.builder.FileValueBuilderImpl
-
- All Implemented Interfaces:
FileValueBuilder
,TypedValueBuilder<FileValue>
public class FileValueBuilderImpl extends java.lang.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(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileValue
create()
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.FileValueBuilder
setTransient(boolean isTransient)
-
-
-
Field Detail
-
fileValue
protected FileValueImpl fileValue
-
-
Method Detail
-
create
public FileValue create()
- Specified by:
create
in interfaceTypedValueBuilder<FileValue>
-
mimeType
public FileValueBuilder mimeType(java.lang.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(java.io.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(java.io.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(java.nio.charset.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(java.lang.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>
-
-