站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.0.4 API 英文版文档

FileDefinition (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档


org.jbpm.file.def
Class FileDefinition

java.lang.Object
  extended byorg.jbpm.module.def.ModuleDefinition
      extended byorg.jbpm.file.def.FileDefinition
All Implemented Interfaces:
java.io.Serializable

public class FileDefinition
extends ModuleDefinition

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.module.def.ModuleDefinition
name, processDefinition
 
Constructor Summary
FileDefinition()
           
 
Method Summary
 void addFile(java.lang.String name, byte[] bytes)
          add a file to this definition.
 void addFile(java.lang.String name, java.io.InputStream is)
          add a file to this definition.
 ModuleInstance createInstance()
           
 byte[] getBytes(java.lang.String name)
          retrieve a file of this definition as a byte array.
 java.util.Map getBytesMap()
           
 java.io.InputStream getInputStream(java.lang.String name)
          retrieve a file of this definition as an inputstream.
 java.util.Map getInputStreamMap()
           
static int transfer(java.io.InputStream in, java.io.OutputStream out)
           
 
Methods inherited from class org.jbpm.module.def.ModuleDefinition
getId, getName, getProcessDefinition, setProcessDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDefinition

public FileDefinition()
Method Detail

createInstance

public ModuleInstance createInstance()
Specified by:
createInstance in class ModuleDefinition

addFile

public void addFile(java.lang.String name,
                    byte[] bytes)
add a file to this definition.


addFile

public void addFile(java.lang.String name,
                    java.io.InputStream is)
add a file to this definition.


getInputStream

public java.io.InputStream getInputStream(java.lang.String name)
retrieve a file of this definition as an inputstream.


getInputStreamMap

public java.util.Map getInputStreamMap()

getBytesMap

public java.util.Map getBytesMap()

getBytes

public byte[] getBytes(java.lang.String name)
retrieve a file of this definition as a byte array.


transfer

public static int transfer(java.io.InputStream in,
                           java.io.OutputStream out)
                    throws java.io.IOException
Throws:
java.io.IOException


Version : jbpm-3.0.4