org.apache.commons.compress.changes
Class Change
java.lang.Object
org.apache.commons.compress.changes.Change
class Change
- extends java.lang.Object
Change holds meta information about a change.
Constructor Summary |
Change(ArchiveEntry pEntry,
java.io.InputStream pInput,
boolean replace)
Construct a change which adds an entry. |
Change(java.lang.String pFilename,
int type)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetFile
private final java.lang.String targetFile
entry
private final ArchiveEntry entry
input
private final java.io.InputStream input
replaceMode
private final boolean replaceMode
type
private final int type
TYPE_DELETE
static final int TYPE_DELETE
- See Also:
- Constant Field Values
TYPE_ADD
static final int TYPE_ADD
- See Also:
- Constant Field Values
TYPE_MOVE
static final int TYPE_MOVE
- See Also:
- Constant Field Values
TYPE_DELETE_DIR
static final int TYPE_DELETE_DIR
- See Also:
- Constant Field Values
Change
Change(java.lang.String pFilename,
int type)
- Constructor. Takes the filename of the file to be deleted
from the stream as argument.
- Parameters:
pFilename
- the filename of the file to delete
Change
Change(ArchiveEntry pEntry,
java.io.InputStream pInput,
boolean replace)
- Construct a change which adds an entry.
- Parameters:
pEntry
- the entry detailspInput
- the InputStream for the entry data
getEntry
ArchiveEntry getEntry()
getInput
java.io.InputStream getInput()
targetFile
java.lang.String targetFile()
type
int type()
isReplaceMode
boolean isReplaceMode()