com.partnersoft.formats.haversack
Class HaversackBuilder

java.lang.Object
  extended by com.partnersoft.formats.haversack.HaversackBuilder

public class HaversackBuilder
extends java.lang.Object

Builder object for Haversack archive files.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
HaversackBuilder(java.io.File haversackFile)
           
HaversackBuilder(java.io.OutputStream outputStream)
           
HaversackBuilder(Path path)
           
HaversackBuilder(java.lang.String pathString)
           
HaversackBuilder(VfsFile haversackFile)
           
 
Method Summary
 void add(VfsFile file)
           
 void addAll(java.lang.Iterable<VfsFile> files)
           
 void addAll(VfsDirectory directory)
           
 void close()
           
 Path getRootPath()
           
 void setRootPath(Path newRootPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaversackBuilder

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

HaversackBuilder

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

HaversackBuilder

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

HaversackBuilder

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

HaversackBuilder

public HaversackBuilder(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