Navigation Menu

Skip to content

cstamas/streams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Streams

Simple reusable utilities for Java IO Streams.

Problem

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.

Solution

Steps needed:

  1. Wrap your nasty class with Coder interface
  2. Optionally subclass CoderInputStream and/or CoderOutputStream
  3. Use your nasty utility as FilterStream!

Look at unit tests for an example.

Have fun,
t

About

Stream Utilities for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages