Class Change<E extends ArchiveEntry>
java.lang.Object
org.apache.commons.compress.changes.Change<E>
- Type Parameters:
E
- The ArchiveEntry type.
Change holds meta information about a change.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
Enumerates types of changes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final E
New entry to add.private final InputStream
Source for new entry.private final boolean
Change should replaceMode existing entries.private final String
Entry name to delete.private final Change.ChangeType
Type of change. -
Constructor Summary
ConstructorsConstructorDescriptionChange
(E archiveEntry, InputStream inputStream, boolean replace) Constructs a change which adds an entry.Change
(String fileName, Change.ChangeType type) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescription(package private) E
getEntry()
(package private) InputStream
(package private) String
(package private) Change.ChangeType
getType()
(package private) boolean
-
Field Details
-
targetFileName
Entry name to delete. -
entry
New entry to add. -
inputStream
Source for new entry. -
replaceMode
private final boolean replaceModeChange should replaceMode existing entries. -
type
Type of change.
-
-
Constructor Details
-
Change
Change(E archiveEntry, InputStream inputStream, boolean replace) Constructs a change which adds an entry.- Parameters:
archiveEntry
- the entry detailsinputStream
- the InputStream for the entry data
-
Change
Change(String fileName, Change.ChangeType type) Constructs a new instance. 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
-
-
Method Details
-
getEntry
E getEntry() -
getInputStream
InputStream getInputStream() -
getTargetFileName
String getTargetFileName() -
getType
Change.ChangeType getType() -
isReplaceMode
boolean isReplaceMode()
-