The VersaStream class is an extension to the idea of InputStreams and OutputStreams. I'll write more about VersaStream later. For now, please take a look at the source code inlcuded. You could start by reading ZeeProxy.java, then VersaStreamFactory.java, then VersaStream.java, for example.

If you don't have the source files (probably because you downloaded the jar file), please go to 

http://www.oocities.org/elifarley/javalibs/

In this page you will find the source files.

Enjoy,

Elifarley C. Coelho
elifarley@yahoo.com
http://www.oocities.org/elifarley/

Copyright

Portions of this software are Copyright (c) 2001, 
Elifarley Callado Coelho -
http://www.oocities.org/elifarley/

License

Redistribution and use in source and binary forms,
with or without modification, are permitted provided that
the following conditions are met:

*	Redistributions of source code must retain the above
copyright notice, this list of conditions and the following
disclaimer. 
*	Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation, about box and/or other
materials provided with the distribution. 
*	No personal names or organizations names associated
with the Indy project may be used to endorse or promote
products derived from this software without specific prior
written permission of the specific individual or
organization. 

THIS SOFTWARE IS PROVIDED BY ITS AUTHOR (ELIFARLEY 
CALLADO COELHO) "AS IS'' AND ANY EXPRESS OR IMPLIED 
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.