Check out with mercurial.

$ hg clone

Build with maven.

$ cd tidemarktext
$ mvn clean install

Here is an example of using tidemarktext from the command line.

$ java -cp target/tidemarktext-0.1.0.jar com.traviswellman.tidemarktext.Main pom.xml

Because I use groovy for exploring new libraries, here's what it looks like to do so with tidemarktext.

$ groovysh
Groovy Shell (2.0.1, JVM: 1.7.0_03-icedtea)
Type 'help' or '\h' for help.
groovy:000> import groovy.grape.Grape
===> [import groovy.grape.Grape]
groovy:000> Grape.grab([group:'com.traviswellman', module:'tidemarktext', version:'0.1.0'])
===> null
groovy:000> import com.traviswellman.tidemarktext.WordCountImpl
===> [import groovy.grape.Grape, import com.traviswellman.tidemarktext.WordCountImpl]
groovy:000> testIn = "The quick brown fox jumped over the lazy brown dog's back";
===> The quick brown fox jumped over the lazy brown dog's back
groovy:000> testOut = "1 The\n1 fox\n1 the\n1 back\n1 lazy\n1 over\n2 brown\n1 dog's\n1 quick\n1 jumped\n";
===> 1 The ...
groovy:000> f = java.nio.file.Files.createTempFile(null, ".txt").toFile()
===> /tmp/87984940606752893.txt
groovy:000> f.deleteOnExit()
===> null
groovy:000> f.withWriter{ w -> w.write(testIn) }
===> null
groovy:000> wci = new WordCountImpl(f, 1);
===> com.traviswellman.tidemarktext.WordCountImpl@5e402aaa
groovy:000> result =
===> {The=1, fox=1, the=1, back=1, lazy=1, over=1, brown=2, dog's=1, quick=1, jumped=1}
groovy:000> actualResult = WordCountImpl.stringify(result).toString()
===> 1 The ...
groovy:000> actualResult == testOut
===> true