org.camunda.bpm.engine.impl.core.variable.value.builder
Class FileValueBuilderImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.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
protected  FileValueImpl fileValue
           
 
Constructor Summary
FileValueBuilderImpl(String filename)
           
 
Method Summary
 FileValue create()
           
 FileValueBuilder encoding(Charset encoding)
          Sets the encoding for the file in the value infos (optional).
 FileValueBuilder encoding(String encoding)
          Sets the encoding for the file in the value infos (optional).
 FileValueBuilder file(byte[] bytes)
          Sets the value to the specified Byte array
 FileValueBuilder file(File file)
          Sets the value to the specified File.
 FileValueBuilder file(InputStream stream)
          Sets the value to the specified InputStream.
 FileValueBuilder mimeType(String mimeType)
          Saves the MIME type of a file in the value infos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileValue

protected FileValueImpl fileValue
Constructor Detail

FileValueBuilderImpl

public FileValueBuilderImpl(String filename)
Method Detail

create

public FileValue create()
Specified by:
create in interface TypedValueBuilder<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 interface FileValueBuilder

file

public FileValueBuilder file(File file)
Description copied from interface: FileValueBuilder
Sets the value to the specified File.

Specified by:
file in interface FileValueBuilder
See Also:
FileValueBuilder.file(byte[]), FileValueBuilder.file(InputStream)

file

public FileValueBuilder file(InputStream stream)
Description copied from interface: FileValueBuilder
Sets the value to the specified InputStream.

Specified by:
file in interface FileValueBuilder
See Also:
FileValueBuilder.file(byte[]), FileValueBuilder.file(File)

file

public FileValueBuilder file(byte[] bytes)
Description copied from interface: FileValueBuilder
Sets the value to the specified Byte array

Specified by:
file in interface FileValueBuilder
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 interface FileValueBuilder
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 interface FileValueBuilder
Returns:


Copyright © 2015 camunda services GmbH. All rights reserved.