当前页面:
在线文档首页 >
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
org.jbpm.module.def.ModuleDefinition
org.jbpm.file.def.FileDefinition
- All Implemented Interfaces:
- java.io.Serializable
- public class FileDefinition
- extends ModuleDefinition
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDefinition
public FileDefinition()
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