Skip to content

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

Notifications You must be signed in to change notification settings

platzhaltr/readr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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);
    }
}

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages