public class Terminator {
- final String startSequence;
- String endSequence;
- TerminationStrategy termination;
+ public final String startSequence;
+ public final String endSequence;
+ public final TerminationStrategy termination;
- public Terminator(final String startPattern, TerminationStrategy termination) {
- startSequence = startPattern;
+ public Terminator(final String startSequence, TerminationStrategy termination) {
+ this.startSequence = startSequence;
+ this.endSequence = null;
this.termination = termination;
}