Class UnpackContent.ZipUnpacker.ZipInputStreamCallback
java.lang.Object
org.apache.nifi.processors.standard.UnpackContent.ZipUnpacker.ZipInputStreamCallback
- All Implemented Interfaces:
org.apache.nifi.processor.io.InputStreamCallback
- Direct Known Subclasses:
UnpackContent.ZipUnpacker.CompressedZipInputStreamCallback,UnpackContent.ZipUnpacker.EncryptedZipInputStreamCallback
- Enclosing class:
UnpackContent.ZipUnpacker
private abstract static class UnpackContent.ZipUnpacker.ZipInputStreamCallback
extends Object
implements org.apache.nifi.processor.io.InputStreamCallback
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateZipInputStreamCallback(Pattern fileFilter, org.apache.nifi.processor.ProcessSession session, org.apache.nifi.flowfile.FlowFile sourceFlowFile, List<org.apache.nifi.flowfile.FlowFile> unpacked, String fragmentId) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEncryptionMethodAttribute(net.lingala.zip4j.model.enums.EncryptionMethod encryptionMethod, Map<String, String> attributes) protected voidaddFilePermissionsAttribute(int mode, Map<String, String> attributes) protected voidaddFileSizeAttribute(long fileSize, Map<String, String> attributes) protected voidaddZipEntryTimeAttributes(Instant lastModified, Instant creation, Instant lastAccess, Map<String, String> attributes) protected booleanisFileEntryMatched(boolean directory, String fileName) protected voidprocessEntry(InputStream zipInputStream, boolean directory, String zipEntryName, Map<String, String> attributes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.processor.io.InputStreamCallback
process
-
Field Details
-
PATH_SEPARATOR
- See Also:
-
fileFilter
-
session
private final org.apache.nifi.processor.ProcessSession session -
sourceFlowFile
private final org.apache.nifi.flowfile.FlowFile sourceFlowFile -
unpacked
-
fragmentId
-
fragmentIndex
private int fragmentIndex
-
-
Constructor Details
-
ZipInputStreamCallback
-
-
Method Details
-
isFileEntryMatched
-
processEntry
protected void processEntry(InputStream zipInputStream, boolean directory, String zipEntryName, Map<String, String> attributes) -
addFileSizeAttribute
-
addEncryptionMethodAttribute
-
addFilePermissionsAttribute
-
addZipEntryTimeAttributes
-