Class PomModifications.Deletion
- java.lang.Object
-
- org.technologybrewery.baton.util.pom.PomModifications.Modification
-
- org.technologybrewery.baton.util.pom.PomModifications.Deletion
-
- All Implemented Interfaces:
Comparable<PomModifications.Modification>
- Enclosing class:
- PomModifications
public static class PomModifications.Deletion extends PomModifications.Modification
Advances the input reader to the line at the specified end location, writing only the content that is not between the start location and the end location to the output writer. I.e., any content on the first line before the start of the location, and any content on the last line after the end of the location, is written to the output writer.
-
-
Constructor Summary
Constructors Constructor Description Deletion(org.apache.maven.model.InputLocation start, org.apache.maven.model.InputLocation end)Constructor to delete content between the given start and end parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intapply(BufferedReader in, Writer out, String line)booleanequals(Object obj)org.apache.maven.model.InputLocationgetEnd()-
Methods inherited from class org.technologybrewery.baton.util.pom.PomModifications.Modification
compareTo, getStart
-
-
-
-
Constructor Detail
-
Deletion
public Deletion(org.apache.maven.model.InputLocation start, org.apache.maven.model.InputLocation end)Constructor to delete content between the given start and end parameters.- Parameters:
start- the location to begin deleting POM file content (inclusive).end- the location to stop deleting POM file content (exclusive).- See Also:
InputLocation
-
-
Method Detail
-
getEnd
public org.apache.maven.model.InputLocation getEnd()
-
apply
public int apply(BufferedReader in, Writer out, String line) throws IOException
- Specified by:
applyin classPomModifications.Modification- Throws:
IOException
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classPomModifications.Modification
-
-