r65535 commented on a change in pull request #4336:
URL: https://github.com/apache/nifi/pull/4336#discussion_r444680953
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/UnpackContent.java
##########
@@ -394,6 +412,65 @@ public void process(final OutputStream out) throws
IOException {
}
}
+ private static class SevenZipUnpacker extends Unpacker {
+ public SevenZipUnpacker(Pattern fileFilter) {
+ super(fileFilter);
+ }
+
+ @Override
+ public void unpack(final ProcessSession session, final FlowFile
source, final List<FlowFile> unpacked) {
+ final String fragmentId = UUID.randomUUID().toString();
+ session.read(source, new InputStreamCallback() {
+ @Override
+ public void process(final InputStream in) throws IOException {
+
+ int fragmentCount = 0;
+ byte[] inputData = IOUtils.toByteArray(in);
Review comment:
Sounds good - is there a standard place in the NiFi structure to put
temporary files or do I let the user specify with a new property? If it's with
a new property, is there another processor that does this so I can align the
name and description?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]