Package org.deltafi.common.nifi
Class FlowFileUtil
java.lang.Object
org.deltafi.common.nifi.FlowFileUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]packageFlowFileV1(Map<String, String> attributes, InputStream in, long fileSize) static byte[]packageFlowFileV2(Map<String, String> attributes, InputStream in, long fileSize) static byte[]packageFlowFileV3(Map<String, String> attributes, InputStream in, long fileSize) static FlowFileunpackageFlowFile(String contentType, InputStream in)
-
Constructor Details
-
FlowFileUtil
public FlowFileUtil()
-
-
Method Details
-
packageFlowFileV1
public static byte[] packageFlowFileV1(Map<String, String> attributes, InputStream in, long fileSize) throws IOException- Throws:
IOException
-
packageFlowFileV2
public static byte[] packageFlowFileV2(Map<String, String> attributes, InputStream in, long fileSize) throws IOException- Throws:
IOException
-
packageFlowFileV3
public static byte[] packageFlowFileV3(Map<String, String> attributes, InputStream in, long fileSize) throws IOException- Throws:
IOException
-
unpackageFlowFile
- Throws:
IOException
-