Simple reusable utilities for Java IO Streams.
You have some utility that is needed for your job to be done, and is about to be used as FilterStream but the utility is "nasty" and does not provide you such classes? Or, you need the exact opposites of GZIPInputStream (that ungzips from input stream) or GZIPOutputStream (that gzips to output stream)?
No problem here.
- Wrap your nasty class with Coder interface
- Optionally subclass CoderInputStream and/or CoderOutputStream
- Use your nasty utility as FilterStream!
Look at unit tests for an example.