Skip to content

sujaybhowmick/code-snippets-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Good example of abstraction to use Reader interface with implementation
based on StringReader, FileReader to read file contents line by line.

It also uses a Janitor class which implements the HasCleanup interface to
free any resources used when finished reading the resource, till then it caches
the file handle and reuses it.

This design is taken from the source code of
groovy <https://github.com/groovy/groovy-core> where the compiler api implements
readers to read the scripts.

About

code-snippets-1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published