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 Details

    • PATH_SEPARATOR

      private static final String PATH_SEPARATOR
      See Also:
    • fileFilter

      private final Pattern fileFilter
    • session

      private final org.apache.nifi.processor.ProcessSession session
    • sourceFlowFile

      private final org.apache.nifi.flowfile.FlowFile sourceFlowFile
    • unpacked

      private final List<org.apache.nifi.flowfile.FlowFile> unpacked
    • fragmentId

      private final String fragmentId
    • fragmentIndex

      private int fragmentIndex
  • Constructor Details

    • ZipInputStreamCallback

      private ZipInputStreamCallback(Pattern fileFilter, org.apache.nifi.processor.ProcessSession session, org.apache.nifi.flowfile.FlowFile sourceFlowFile, List<org.apache.nifi.flowfile.FlowFile> unpacked, String fragmentId)
  • Method Details

    • isFileEntryMatched

      protected boolean isFileEntryMatched(boolean directory, String fileName)
    • processEntry

      protected void processEntry(InputStream zipInputStream, boolean directory, String zipEntryName, Map<String,String> attributes)
    • addFileSizeAttribute

      protected void addFileSizeAttribute(long fileSize, Map<String,String> attributes)
    • addEncryptionMethodAttribute

      protected void addEncryptionMethodAttribute(net.lingala.zip4j.model.enums.EncryptionMethod encryptionMethod, Map<String,String> attributes)
    • addFilePermissionsAttribute

      protected void addFilePermissionsAttribute(int mode, Map<String,String> attributes)
    • addZipEntryTimeAttributes

      protected void addZipEntryTimeAttributes(Instant lastModified, Instant creation, Instant lastAccess, Map<String,String> attributes)