1 package compbio.engine.archive;
3 import java.io.FileOutputStream;
4 import java.io.IOException;
5 import java.net.MalformedURLException;
7 import java.nio.channels.Channels;
8 import java.nio.channels.ReadableByteChannel;
11 public class ArchivedJob {
16 ArchivedJob (String path) {
20 public boolean getArchiveFromWS() {
25 public boolean getArchiveFromWeb (String webpath) throws IOException, MalformedURLException {
26 URL website = new URL(webpath);
27 ReadableByteChannel rbc = Channels.newChannel(website.openStream());
28 FileOutputStream fos = new FileOutputStream(path);
29 fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
34 public int getSize() {
38 public List<String> unpack() {