Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 625 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 625 Bytes

README.md

A project that helps create FilterReader that removes and transforms lines before reading them.

Usage

public class UsageExample {

    public void test(final File file) throws IOException {
    	final MogrifiedReaderMaker maker = new MogrifiedReaderMaker();
    	
    	maker.trimRight();
		maker.omitLines().startingWith("#");
    	maker.omitLines().containing("needle");
    	maker.transformLines().byReplacing("foobar", " foobaz");
    	
    	final Reader reader = maker.read(file);
    }
}