Package org.apache.nifi.util
Class FlowFilePackagerV3
java.lang.Object
org.apache.nifi.util.FlowFilePackagerV3
- All Implemented Interfaces:
FlowFilePackager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]private static final intprivate final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcopy(InputStream in, OutputStream out) voidpackageFlowFile(InputStream in, OutputStream out, Map<String, String> attributes, long fileSize) private voidwriteFieldLength(OutputStream out, int numBytes) private voidwriteLong(OutputStream out, long val) private voidwriteString(String val, OutputStream out)
-
Field Details
-
MAGIC_HEADER
public static final byte[] MAGIC_HEADER -
MAX_VALUE_2_BYTES
private static final int MAX_VALUE_2_BYTES- See Also:
-
writeBuffer
private final byte[] writeBuffer
-
-
Constructor Details
-
FlowFilePackagerV3
public FlowFilePackagerV3()
-
-
Method Details
-
packageFlowFile
public void packageFlowFile(InputStream in, OutputStream out, Map<String, String> attributes, long fileSize) throws IOException- Specified by:
packageFlowFilein interfaceFlowFilePackager- Throws:
IOException
-
copy
- Throws:
IOException
-
writeString
- Throws:
IOException
-
writeFieldLength
- Throws:
IOException
-
writeLong
- Throws:
IOException
-