Class InputStreamSource
- java.lang.Object
-
- org.flowable.common.engine.impl.util.io.InputStreamSource
-
- All Implemented Interfaces:
InputStreamProvider,StreamSource
public class InputStreamSource extends Object implements StreamSource
- Author:
- Tom Baeyens, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]bytesprotected BufferedInputStreaminputStream
-
Constructor Summary
Constructors Constructor Description InputStreamSource(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytesFromInputStream(InputStream inStream)InputStreamgetInputStream()Creates a NEWInputStreamto the provided resource.StringtoString()
-
-
-
Field Detail
-
inputStream
protected BufferedInputStream inputStream
-
bytes
protected byte[] bytes
-
-
Constructor Detail
-
InputStreamSource
public InputStreamSource(InputStream inputStream)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
Description copied from interface:StreamSourceCreates a NEWInputStreamto the provided resource.- Specified by:
getInputStreamin interfaceInputStreamProvider- Specified by:
getInputStreamin interfaceStreamSource
-
getBytesFromInputStream
public byte[] getBytesFromInputStream(InputStream inStream) throws IOException
- Throws:
IOException
-
-