public class Bundle extends Object
Constructor and Description |
---|
Bundle() |
Modifier and Type | Method and Description |
---|---|
void |
addBundle(ArrayList<String> path)
Add collections to a bundle.
|
ArrayList<String> |
addExclude(ArrayList<String> list) |
static void |
dump(String pathname,
String prefix) |
ArrayList<String> |
getExclude() |
ArrayList<String> |
getFolders(String path) |
boolean |
getProgress() |
boolean |
getVerbose() |
void |
listBundle(String path)
List the contents of a bundle.
|
static HashMap<String,BundleRecord> |
load(File file)
Loads a bundle description.
|
static HashMap<String,BundleRecord> |
load(String pathname)
Loads a bundle description.
|
static void |
main(String[] args)
Command-line interface.
|
void |
removeBundle(ArrayList<String> path)
Remove collections from a bundle.
|
ArrayList<String> |
setExclude(ArrayList<String> list) |
boolean |
setProgress(boolean state) |
boolean |
setVerbose(boolean state) |
void |
showHelp()
Show the help for the tool.
|
static void |
store(File file,
HashMap<String,BundleRecord> bundle)
Store a bundle definition.
|
static void |
store(String pathname,
HashMap<String,BundleRecord> bundle)
Store a bundle definition.
|
public static void main(String[] args)
args
- command-line arguments.public void showHelp()
public void listBundle(String path) throws Exception
path
- the pathname of the managed folder.Exception
- if any error occurs.public void addBundle(ArrayList<String> path) throws Exception
path
- an ArrayListException
- if any error occurs.public void removeBundle(ArrayList<String> path) throws Exception
path
- an ArrayListException
- if any error occurs.public static HashMap<String,BundleRecord> load(String pathname) throws NumberFormatException, IOException
pathname
- a pathname to the bundle file.NumberFormatException
IOException
public static HashMap<String,BundleRecord> load(File file) throws NumberFormatException, IOException
file
- a File
set to the bundle file.NumberFormatException
IOException
public static void store(String pathname, HashMap<String,BundleRecord> bundle) throws FileNotFoundException
pathname
- the pathname to the bundle file.bundle
- a HashMapFileNotFoundException
public static void store(File file, HashMap<String,BundleRecord> bundle) throws FileNotFoundException
file
- a File
set to the bundle file.bundle
- a HashMapFileNotFoundException
public boolean getProgress()
public boolean setProgress(boolean state)
public boolean getVerbose()
public boolean setVerbose(boolean state)
Copyright © 2014-2016 Regents University of California. All Rights Reserved.