exense-basic-commons/src/main/java/ch/exense/commons/io/FileHelper.java
/**
	 * Copy a {@link InputStream} to an {@link OutputStream}
	 * @param input the {@link InputStream} to be read
	 * @param output the target {@link OutputStream} 
	 * @param bufferSize the buffersize to be used 
	 * @throws IOException
	 */
Copy a  InputStream to an  OutputStream
@param input the  InputStream to be read
@param output the target  OutputStream
@param bufferSize the buffersize to be used
@throws IOException
Copy a InputStream to an OutputStream @param input the InputStream to be read @param output the target OutputStream @param bufferSize the buffersize to be used @throws IOException
public static void copy(final InputStream input, final OutputStream output, int bufferSize) throws IOException {
		final byte[] buffer = new byte[bufferSize];
		int n = 0;
		while ((n = input.read(buffer)) > 0) {
			output.write(buffer, 0, n);
		}
	}
public static void copy ( final InputStream input , final OutputStream output , int bufferSize ) throws IOException { final byte [ ] buffer = new byte [ bufferSize ] ; int n = 0 ; while ( ( n = input . read ( buffer ) ) > 0 ) { output . write ( buffer , 0 , n ) ; } }
Copy a {@link InputStream} to an {@link OutputStream}
 @param input the {@link InputStream} to be read
 @param output the target {@link OutputStream}
 @param bufferSize the buffersize to be used
 @throws IOException
Copy a { @link InputStream } to an { @link OutputStream } @param input the { @link InputStream } to be read @param output the target { @link OutputStream } @param bufferSize the buffersize to be used @throws IOException