Class PomModifications.Final
java.lang.Object
org.technologybrewery.baton.util.pom.PomModifications.Final
- Enclosing class:
- PomModifications
A class to iteratively apply a series of POM file modifications.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesTo(int lineNumber) intapply(BufferedReader in, Writer out, String line) Applies the next modification to the input reader, writing the result to the output writer.
-
Method Details
-
appliesTo
public boolean appliesTo(int lineNumber) -
apply
Applies the next modification to the input reader, writing the result to the output writer.- Parameters:
in- the input reader.out- the output writer.line- the current line of the input reader.- Returns:
- the line number of `in` after the modification has been applied (changes iff the input reader was advanced).
- Throws:
IOException- if an I/O error occurs.
-