/**
* Helper class that copies bytes from an {@link InputStream} to an
* {@link OutputStream}.
- *
+ *
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
*/
public class StreamCopier {
/**
* Sets the buffer size for following transfers.
- *
+ *
* @param bufferSize
* The new buffer size
*/
* as much bytes as possible will be copied (i.e. until
* {@link InputStream#read()} returns <code>-1</code> to signal the end of
* the stream).
- *
+ *
* @param source
* The input stream to read from
* @param destination
* Copies as much bytes as possible (i.e. until {@link InputStream#read()}
* returns <code>-1</code>) from the source input stream to the
* destination output stream.
- *
+ *
* @param source
* The input stream to read from
* @param destination
/**
* Finds the length of the input stream by reading until
* {@link InputStream#read(byte[])} returns <code>-1</code>.
- *
+ *
* @param source
* The input stream to measure
* @return The length of the input stream in bytes