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 FileValueImplfileValue
-
Constructor Summary
Constructors Constructor Description FileValueBuilderImpl(String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileValuecreate()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.FileValueBuildersetTransient(boolean isTransient)
-
-
-
Field Detail
-
fileValue
protected FileValueImpl fileValue
-
-
Constructor Detail
-
FileValueBuilderImpl
public FileValueBuilderImpl(String filename)
-
-
Method Detail
-
create
public FileValue create()
- Specified by:
createin interfaceTypedValueBuilder<FileValue>
-
mimeType
public FileValueBuilder mimeType(String mimeType)
Description copied from interface:FileValueBuilderSaves the MIME type of a file in the value infos.- Specified by:
mimeTypein interfaceFileValueBuilder- Parameters:
mimeType- the MIME type as string
-
file
public FileValueBuilder file(File file)
Description copied from interface:FileValueBuilderSets the value to the specifiedFile.- Specified by:
filein interfaceFileValueBuilder- See Also:
FileValueBuilder.file(byte[]),FileValueBuilder.file(InputStream)
-
file
public FileValueBuilder file(InputStream stream)
Description copied from interface:FileValueBuilderSets the value to the specifiedInputStream.- Specified by:
filein interfaceFileValueBuilder- See Also:
FileValueBuilder.file(byte[]),FileValueBuilder.file(File)
-
file
public FileValueBuilder file(byte[] bytes)
Description copied from interface:FileValueBuilderSets the value to the specifiedBytearray- Specified by:
filein interfaceFileValueBuilder- See Also:
FileValueBuilder.file(File),FileValueBuilder.file(InputStream)
-
encoding
public FileValueBuilder encoding(Charset encoding)
Description copied from interface:FileValueBuilderSets the encoding for the file in the value infos (optional).- Specified by:
encodingin interfaceFileValueBuilder- Returns:
-
encoding
public FileValueBuilder encoding(String encoding)
Description copied from interface:FileValueBuilderSets the encoding for the file in the value infos (optional).- Specified by:
encodingin interfaceFileValueBuilder- Returns:
-
setTransient
public FileValueBuilder setTransient(boolean isTransient)
- Specified by:
setTransientin interfaceTypedValueBuilder<FileValue>
-
-