Class ChangeSetResults
java.lang.Object
org.apache.commons.compress.changes.ChangeSetResults
Stores the results of a performed
ChangeSet operation.-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddedFromChangeSet(String fileName) Adds the name of a file to the result list which has been copied from theChangeSetto the target stream(package private) voidaddedFromStream(String fileName) Adds the name of a file to the result list which has been copied from the source stream to the target stream.(package private) voidAdds the file name of a recently deleted file to the result list.Gets a list of file names which has been added from theChangeSetGets a list of file names which has been added from the original streamGets a list of file names which has been deleted(package private) booleanhasBeenAdded(String fileName) Tests if a file name already has been added to the result list
-
Field Details
-
addedFromChangeSet
-
addedFromStream
-
deleted
-
-
Constructor Details
-
ChangeSetResults
public ChangeSetResults()
-
-
Method Details
-
addedFromChangeSet
Adds the name of a file to the result list which has been copied from theChangeSetto the target stream- Parameters:
fileName- the name of the file
-
addedFromStream
Adds the name of a file to the result list which has been copied from the source stream to the target stream.- Parameters:
fileName- the file name which has been added from the original stream
-
deleted
Adds the file name of a recently deleted file to the result list.- Parameters:
fileName- the file which has been deleted
-
getAddedFromChangeSet
Gets a list of file names which has been added from theChangeSet- Returns:
- the list of file names
-
getAddedFromStream
Gets a list of file names which has been added from the original stream- Returns:
- the list of file names
-
getDeleted
Gets a list of file names which has been deleted- Returns:
- the list of file names
-
hasBeenAdded
Tests if a file name already has been added to the result list- Parameters:
fileName- the file name to check- Returns:
- true, if this file name already has been added
-