Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
  * which accompanies this distribution, and is available at http://creativecommons.org/licenses/by-nd/4.0/
  *
  * Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - RMI Client, FileChooser and WebDAV
  */
package de.ipk_gatersleben.bit.bi.edal.publication.metadata;
public class FileStoreSwingWorker extends SwingWorker<ObjectObject> {
	private Path file;
	public FileStoreSwingWorker(JProgressBar fileProgressbar,
			JProgressBar overallProgressbarPath file,
			ClientPrimaryDataFile clientPrimaryDataFileCountDownLatch latch) {
		this. = clientPrimaryDataFile;
		this. = file;
		this. = fileProgressbar;
		this. = overallProgressbar;
		this. = latch;
	}
	protected Integer doInBackground() throws Exception {
		try {
			FileProgressInputStream progressInputStream = new FileProgressInputStream(
					this.fis);
			.store(progressInputStream);
			progressInputStream.close();
catch (Exception e) {
		}
		return 1;
	}
	protected void done() {
	}
New to GrepCode? Check out our FAQ X