Interface AlignmentRule
-
public interface AlignmentRuleAn 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 intNO_ALIGNMENTAlignment value of files that do not require alignment.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intalignment(java.lang.String path)Obtains the alignment this rule computes for a given path.
-
-
-
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, thenNO_ALIGNMENTis returned
-
-