public final class ChangeSet
extends java.lang.Object
Constructor and Description |
---|
ChangeSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(ArchiveEntry pEntry,
java.io.InputStream pInput)
Adds a new archive entry to the archive.
|
void |
add(ArchiveEntry pEntry,
java.io.InputStream pInput,
boolean replace)
Adds a new archive entry to the archive.
|
private void |
addAddition(Change pChange)
Adds an addition change.
|
private void |
addDeletion(Change pChange)
Adds an delete change.
|
void |
delete(java.lang.String filename)
Deletes the file with the filename from the archive.
|
void |
deleteDir(java.lang.String dirName)
Deletes the directory tree from the archive.
|
(package private) java.util.Set<Change> |
getChanges()
Returns the list of changes as a copy.
|
private final java.util.Set<Change> changes
public void delete(java.lang.String filename)
filename
- the filename of the file to deletepublic void deleteDir(java.lang.String dirName)
dirName
- the name of the directory tree to deletepublic void add(ArchiveEntry pEntry, java.io.InputStream pInput)
pEntry
- the entry to addpInput
- the datastream to addpublic void add(ArchiveEntry pEntry, java.io.InputStream pInput, boolean replace)
pEntry
- the entry to addpInput
- the datastream to addreplace
- indicates the this change should replace existing entriesprivate void addAddition(Change pChange)
pChange
- the change which should result in an additionprivate void addDeletion(Change pChange)
pChange
- the change which should result in a deletionjava.util.Set<Change> getChanges()