|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.compress.changes.ChangeSet
public final class ChangeSet
ChangeSet collects and performs changes to an archive. Putting delete changes in this ChangeSet from multiple threads can cause conflicts.
Constructor Summary | |
---|---|
ChangeSet()
|
Method Summary | |
---|---|
void |
add(ArchiveEntry pEntry,
InputStream pInput)
Adds a new archive entry to the archive. |
void |
add(ArchiveEntry pEntry,
InputStream pInput,
boolean replace)
Adds a new archive entry to the archive. |
void |
delete(String filename)
Deletes the file with the filename from the archive. |
void |
deleteDir(String dirName)
Deletes the directory tree from the archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeSet()
Method Detail |
---|
public void delete(String filename)
filename
- the filename of the file to deletepublic void deleteDir(String dirName)
dirName
- the name of the directory tree to deletepublic void add(ArchiveEntry pEntry, InputStream pInput)
pEntry
- the entry to addpInput
- the datastream to addpublic void add(ArchiveEntry pEntry, InputStream pInput, boolean replace)
pEntry
- the entry to addpInput
- the datastream to addreplace
- indicates the this change should replace existing entries
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |