org.symbian.tools.mtw.core/src/org/symbian/tools/mtw/core/utilities/ZipApplicationVisitor.java
changeset 459 c278f0c8917f
parent 455 5da55957c779
equal deleted inserted replaced
458:5ff93668b08c 459:c278f0c8917f
    30 import org.eclipse.core.runtime.CoreException;
    30 import org.eclipse.core.runtime.CoreException;
    31 import org.eclipse.core.runtime.IPath;
    31 import org.eclipse.core.runtime.IPath;
    32 import org.eclipse.core.runtime.IStatus;
    32 import org.eclipse.core.runtime.IStatus;
    33 import org.eclipse.core.runtime.Status;
    33 import org.eclipse.core.runtime.Status;
    34 import org.symbian.tools.mtw.core.MTWCore;
    34 import org.symbian.tools.mtw.core.MTWCore;
    35 import org.symbian.tools.mtw.core.runtimes.IPackager;
    35 import org.symbian.tools.mtw.core.runtimes.IPackagerDelegate;
    36 
    36 
    37 /**
    37 /**
    38  * Use this visitor to zip application if the web runtime uses zip archive as application
    38  * Use this visitor to zip application if the web runtime uses zip archive as application
    39  * distribution format.
    39  * distribution format.
    40  * 
    40  * 
    41  * @author Eugene Ostroukhov (eugeneo@symbian.org)
    41  * @author Eugene Ostroukhov (eugeneo@symbian.org)
    42  */
    42  */
    43 public class ZipApplicationVisitor implements IResourceVisitor {
    43 public class ZipApplicationVisitor implements IResourceVisitor {
    44     private static final int DEFAULT_BUFFER_SIZE = 65536;
    44     private static final int DEFAULT_BUFFER_SIZE = 65536;
    45     private final ZipOutputStream zipStream;
    45     private final ZipOutputStream zipStream;
    46     private final IPackager packager;
    46     private final IPackagerDelegate packager;
    47 
    47 
    48     public ZipApplicationVisitor(ZipOutputStream zipStream, IPackager packager) {
    48     public ZipApplicationVisitor(ZipOutputStream zipStream, IPackagerDelegate packager) {
    49         this.zipStream = zipStream;
    49         this.zipStream = zipStream;
    50         this.packager = packager;
    50         this.packager = packager;
    51     }
    51     }
    52 
    52 
    53     public boolean visit(IResource resource) throws CoreException {
    53     public boolean visit(IResource resource) throws CoreException {