Class Change
java.lang.Object
org.apache.commons.compress.changes.Change
Change holds meta information about a change.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArchiveEntry
private final InputStream
private final boolean
private final String
private final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Change
(ArchiveEntry archiveEntry, InputStream inputStream, boolean replace) Construct a change which adds an entry. -
Method Summary
Modifier and TypeMethodDescription(package private) ArchiveEntry
getEntry()
(package private) InputStream
getInput()
(package private) boolean
(package private) String
(package private) int
type()
-
Field Details
-
targetFile
-
entry
-
input
-
replaceMode
private final boolean replaceMode -
type
private final int type -
TYPE_DELETE
static final int TYPE_DELETE- See Also:
-
TYPE_ADD
static final int TYPE_ADD- See Also:
-
TYPE_MOVE
static final int TYPE_MOVE- See Also:
-
TYPE_DELETE_DIR
static final int TYPE_DELETE_DIR- See Also:
-
-
Constructor Details
-
Change
Change(String fileName, int type) Constructor. Takes the file name of the file to be deleted from the stream as argument.- Parameters:
fileName
- the file name of the file to delete
-
Change
Change(ArchiveEntry archiveEntry, InputStream inputStream, boolean replace) Construct a change which adds an entry.- Parameters:
archiveEntry
- the entry detailsinputStream
- the InputStream for the entry data
-
-
Method Details
-
getEntry
ArchiveEntry getEntry() -
getInput
InputStream getInput() -
targetFile
String targetFile() -
type
int type() -
isReplaceMode
boolean isReplaceMode()
-