Package net.sf.mzmine.util

Examples of net.sf.mzmine.util.StreamCopy


    InputStream scanInputStream = zipFile.getInputStream(scansEntry);
    FileOutputStream fileStream = new FileOutputStream(tempFile);

    // Extracts the scan file from the zip project file to the temporary
    // folder
    copyMachine = new StreamCopy();
    stepNumber++;
    copyMachine.copy(scanInputStream, fileStream, scansEntry.getSize());
    fileStream.close();

    stepNumber++;
View Full Code Here


          + ExceptionUtils.exceptionToString(e));
    }

    FileInputStream fileStream = new FileInputStream(tempConfigFile);

    StreamCopy copyMachine = new StreamCopy();
    copyMachine.copy(fileStream, zipStream);

    fileStream.close();
    tempConfigFile.delete();
  }
View Full Code Here

    InputStream scanInputStream = zipFile.getInputStream(scansEntry);
    FileOutputStream fileStream = new FileOutputStream(tempFile);

    // Extracts the scan file from the zip project file to the temporary
    // folder
    copyMachine = new StreamCopy();
    stepNumber++;
    copyMachine.copy(scanInputStream, fileStream, scansEntry.getSize());
    fileStream.close();

    stepNumber++;
View Full Code Here

    InputStream scanInputStream = zipFile.getInputStream(scansEntry);
    FileOutputStream fileStream = new FileOutputStream(tempFile);

    // Extracts the scan file from the zip project file to the temporary
    // folder
    copyMachine = new StreamCopy();
    stepNumber++;
    copyMachine.copy(scanInputStream, fileStream, scansEntry.getSize());
    fileStream.close();

    stepNumber++;
View Full Code Here

    }

    InputStream configInputStream = zipFile.getInputStream(configEntry);
    File tempConfigFile = File.createTempFile("mzmineconfig", ".tmp");
    FileOutputStream fileStream = new FileOutputStream(tempConfigFile);
    StreamCopy copyMachine = new StreamCopy();
    copyMachine.copy(configInputStream, fileStream);
    fileStream.close();

    try {
      MZmineCore.getConfiguration().loadConfiguration(tempConfigFile);
    } catch (Exception e) {
View Full Code Here

    InputStream scanInputStream = zipFile.getInputStream(scansEntry);
    FileOutputStream fileStream = new FileOutputStream(tempFile);

    // Extracts the scan file from the zip project file to the temporary
    // folder
    copyMachine = new StreamCopy();
    stepNumber++;
    copyMachine.copy(scanInputStream, fileStream, scansEntry.getSize());
    fileStream.close();

    stepNumber++;
View Full Code Here

TOP

Related Classes of net.sf.mzmine.util.StreamCopy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.