Interface AlignmentRule


  • public interface AlignmentRule
    An alignment rule defines how to a file should be aligned in a zip, based on its name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NO_ALIGNMENT
      Alignment value of files that do not require alignment.
    • Field Detail

      • NO_ALIGNMENT

        static final int NO_ALIGNMENT
        Alignment value of files that do not require alignment.
        See Also:
        Constant Field Values
    • Method Detail

      • alignment

        int alignment​(java.lang.String path)
        Obtains the alignment this rule computes for a given path.
        Parameters:
        path - the path in the zip file
        Returns:
        the alignment value, always greater than 0; if this rule places no restrictions on the provided path, then NO_ALIGNMENT is returned