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 FileValueImplfileValue
-
Constructor Summary
Constructors Constructor Description FileValueBuilderImpl(java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileValuecreate()FileValueBuilderencoding(java.lang.String encoding)Sets the encoding for the file in the value infos (optional).FileValueBuilderencoding(java.nio.charset.Charset encoding)Sets the encoding for the file in the value infos (optional).FileValueBuilderfile(byte[] bytes)Sets the value to the specifiedBytearrayFileValueBuilderfile(java.io.File file)Sets the value to the specifiedFile.FileValueBuilderfile(java.io.InputStream stream)Sets the value to the specifiedInputStream.FileValueBuildermimeType(java.lang.String mimeType)Saves the MIME type of a file in the value infos.FileValueBuildersetTransient(boolean isTransient)
-
-
-
Field Detail
-
fileValue
protected FileValueImpl fileValue
-
-
Method Detail
-
create
public FileValue create()
- Specified by:
createin interfaceTypedValueBuilder<FileValue>
-
mimeType
public FileValueBuilder mimeType(java.lang.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(java.io.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(java.io.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(java.nio.charset.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(java.lang.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>
-
-