code: public static void copyBufferedStream(BufferedInputStream sourceStream, BufferedOutputStream destinationStream,
  			boolean closeStreams) throws IOException {
  		byte[] buffer = new byte[8192];
  		int bytesRead = 0;
  
  		try {
  			while ((bytesRead = sourceStream.read(buffer)) != -1) {
  				destinationStream.write(buffer, 0, bytesRead);
  			}
  		} finally {
  			if (closeStreams) {
  				sourceStream.close();
  				destinationStream.close();
  			}
  		}
  	}
docs: Kopiert den Inhalt eines Datenstroms in einen anderen.
  
  @param sourceStream
  Quelldatenstrom
  @param destinationStream
  Zieldatenstrom
  @throws IOException