org.backsource.utils.io
Class IOHelper

java.lang.Object
  extended byorg.backsource.utils.io.IOHelper

public class IOHelper
extends java.lang.Object

A simple IO helper that has bean arround some time.

Version:
Author:
Peter Antman

Method Summary
static void connect(java.io.InputStream is, java.io.OutputStream os)
          Connect an is and os, when the method returns the stuff will have been written to the os, be it a file or a byte[].
static void connect(java.io.Reader reader, java.io.Writer writer)
          Connect an reader and writer, when the method returns the stuff will have been written to the writer, be it a file or a char[].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

connect

public static void connect(java.io.InputStream is,
                           java.io.OutputStream os)
                    throws java.io.IOException
Connect an is and os, when the method returns the stuff will have been written to the os, be it a file or a byte[]. Its is up to the user to close() the streams, the os will have been flushed

Throws:
java.io.IOException

connect

public static void connect(java.io.Reader reader,
                           java.io.Writer writer)
                    throws java.io.IOException
Connect an reader and writer, when the method returns the stuff will have been written to the writer, be it a file or a char[]. Its is up to the user to close() the reader and writer, the writer will have been flushed

Throws:
java.io.IOException


Copyright © 2000-2004 Backsource. All Rights Reserved.