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 enumEnumerates types of changes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ENew entry to add.private final InputStreamSource for new entry.private final booleanChange should replaceMode existing entries.private final StringEntry name to delete.private final Change.ChangeTypeType 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) EgetEntry()(package private) InputStream(package private) String(package private) Change.ChangeTypegetType()(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()
-