Interface JarFlinger.Transformer

Enclosing class:
JarFlinger

public static interface JarFlinger.Transformer
  • Method Summary

    Modifier and Type
    Method
    Description
    filter(String entryPath, InputStream input)
    Transforms the given file.
  • Method Details

    • filter

      @Nullable InputStream filter(@NonNull String entryPath, @NonNull InputStream input)
      Transforms the given file.
      Parameters:
      entryPath - the path within the jar file
      input - an input stream of the contents of the file
      Returns:
      a new input stream if the file is transformed in some way, the same input stream if the file is to be kept as is and null if the file should not be packaged.