com.partnersoft.formats.zip
Class ZipBuilder
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 -