1 23 24 package com.sun.enterprise.deployment.deploy.shared; 25 26 import java.io.IOException ; 27 28 34 public class FileArchiveFactory implements AbstractArchiveFactory { 35 36 44 public AbstractArchive createArchive(String path) throws IOException { 45 FileArchive output = new FileArchive(); 46 output.create(path); 47 return output; 48 } 49 50 58 public AbstractArchive openArchive(String path) throws IOException { 59 FileArchive input = new FileArchive(); 60 input.open(path); 61 return input; 62 } 63 64 } 65 | Popular Tags |