OCPsoft Common API 1.0.4.Final

org.ocpsoft.common.util
Class Streams

java.lang.Object
  extended by org.ocpsoft.common.util.Streams

public final class Streams
extends java.lang.Object

Author:
Lincoln Baxter, III

Constructor Summary
Streams()
           
 
Method Summary
static boolean copy(java.io.InputStream input, java.io.OutputStream output)
          Copy all contents from the InputStream to the OutputStream, using a buffer of size 2048.
static boolean copy(java.io.InputStream input, java.io.OutputStream output, int bufferSize)
          Copy all contents from the InputStream to the OutputStream, using a buffer of the given size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Streams

public Streams()
Method Detail

copy

public static boolean copy(java.io.InputStream input,
                           java.io.OutputStream output)
Copy all contents from the InputStream to the OutputStream, using a buffer of size 2048.


copy

public static boolean copy(java.io.InputStream input,
                           java.io.OutputStream output,
                           int bufferSize)
Copy all contents from the InputStream to the OutputStream, using a buffer of the given size.


OCPsoft Common API 1.0.4.Final

Copyright © 2012 OCPsoft. All Rights Reserved.