Add method that allows to reset the line suppression.
[xudocci.git] / src / main / java / net / pterodactylus / xdcc / util / io / DuplicateLineSuppressingWriter.java
index 85e90eb..1610678 100644 (file)
@@ -91,6 +91,10 @@ public class DuplicateLineSuppressingWriter extends Writer {
                writeCollectedLines();
        }
 
+       public void reset() {
+               lastLine = null;
+       }
+
        private void writeCollectedLines() throws IOException {
                while (currentLineContainsLineBreak()) {
                        String nextLine = cutNextLine();