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.
-
Notifications
You must be signed in to change notification settings - Fork 0
sujaybhowmick/code-snippets-1
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
code-snippets-1
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published