Interface AdvancedFileContentModifier<T>

All Superinterfaces:
FileContentModifier
All Known Subinterfaces:
FileLinesContentModifier

public interface AdvancedFileContentModifier<T> extends FileContentModifier
  • Method Summary

    Modifier and Type
    Method
    Description
    default InputStream
    apply(Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)
     
    createInputStream(byte[] data, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)
     
    byte[]
     
    default boolean
    isIdentical(T original, T created)
     
    modify(T lines, Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)
     
    readOriginal(Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)
     
    default boolean
    shouldApply(Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)
     
  • Method Details

    • apply

      default InputStream apply(Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry) throws IOException
      Specified by:
      apply in interface FileContentModifier
      Throws:
      IOException
    • shouldApply

      default boolean shouldApply(Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)
    • readOriginal

      T readOriginal(Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry) throws IOException
      Throws:
      IOException
    • modify

      T modify(T lines, Path sourcePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry) throws IOException
      Throws:
      IOException
    • isIdentical

      default boolean isIdentical(T original, T created)
    • createInputStreamData

      byte[] createInputStreamData(T data) throws IOException
      Throws:
      IOException
    • createInputStream

      default ByteArrayInputStream createInputStream(byte[] data, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry)