com.partnersoft.formats.zip
Class ZipBuilder

java.lang.Object
  extended by com.partnersoft.formats.zip.ZipBuilder

public class ZipBuilder
extends java.lang.Object

Builder object for ZIP archive files.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
ZipBuilder(java.io.File haversackFile)
           
ZipBuilder(java.io.OutputStream outputStream)
           
ZipBuilder(Path path)
           
ZipBuilder(java.lang.String pathString)
           
ZipBuilder(VfsFile haversackFile)
           
 
Method Summary
 void add(VfsFile file)
           
 void addAll(java.lang.Iterable<VfsFile> files)
           
 void addAll(VfsDirectory directory)
           
 void close()
           
 int getLevel()
          Get the level of compression (0-9).
 Path getRootPath()
           
 void setLevel(int level)
          Set the level of compression (0-9).
 void setRootPath(Path newRootPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipBuilder

public ZipBuilder(java.lang.String pathString)
           throws java.io.IOException
Throws:
java.io.IOException

ZipBuilder

public ZipBuilder(Path path)
           throws java.io.IOException
Throws:
java.io.IOException

ZipBuilder

public ZipBuilder(VfsFile haversackFile)
           throws java.io.IOException
Throws:
java.io.IOException

ZipBuilder

public ZipBuilder(java.io.File haversackFile)
           throws java.io.IOException
Throws:
java.io.IOException

ZipBuilder

public ZipBuilder(java.io.OutputStream outputStream)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setRootPath

public void setRootPath(Path newRootPath)

getRootPath

public Path getRootPath()

add

public void add(VfsFile file)
         throws java.io.IOException
Throws:
java.io.IOException

addAll

public void addAll(java.lang.Iterable<VfsFile> files)
            throws java.io.IOException
Throws:
java.io.IOException

addAll

public void addAll(VfsDirectory directory)
            throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

getLevel

public int getLevel()
Get the level of compression (0-9).

Returns:

setLevel

public void setLevel(int level)
Set the level of compression (0-9).

Parameters:
level -