org.apache.commons.compress.changes
Class ChangeSetResults

java.lang.Object
  extended by org.apache.commons.compress.changes.ChangeSetResults

public class ChangeSetResults
extends java.lang.Object

Stores the results of an performed ChangeSet operation.


Field Summary
private  java.util.List addedFromChangeSet
           
private  java.util.List addedFromStream
           
private  java.util.List deleted
           
 
Constructor Summary
ChangeSetResults()
           
 
Method Summary
(package private)  void addedFromChangeSet(java.lang.String fileName)
          Adds the name of a file to the result list which has been copied from the changeset to the target stream
(package private)  void addedFromStream(java.lang.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)  void deleted(java.lang.String fileName)
          Adds the filename of a recently deleted file to the result list.
 java.util.List getAddedFromChangeSet()
          Returns a list of filenames which has been added from the changeset
 java.util.List getAddedFromStream()
          Returns a list of filenames which has been added from the original stream
 java.util.List getDeleted()
          Returns a list of filenames which has been deleted
(package private)  boolean hasBeenAdded(java.lang.String filename)
          Checks if an filename already has been added to the result list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addedFromChangeSet

private final java.util.List addedFromChangeSet

addedFromStream

private final java.util.List addedFromStream

deleted

private final java.util.List deleted
Constructor Detail

ChangeSetResults

public ChangeSetResults()
Method Detail

deleted

void deleted(java.lang.String fileName)
Adds the filename of a recently deleted file to the result list.

Parameters:
fileName - the file which has been deleted

addedFromStream

void addedFromStream(java.lang.String fileName)
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

addedFromChangeSet

void addedFromChangeSet(java.lang.String fileName)
Adds the name of a file to the result list which has been copied from the changeset to the target stream

Parameters:
fileName - the name of the file

getAddedFromChangeSet

public java.util.List getAddedFromChangeSet()
Returns a list of filenames which has been added from the changeset

Returns:
the list of filenames

getAddedFromStream

public java.util.List getAddedFromStream()
Returns a list of filenames which has been added from the original stream

Returns:
the list of filenames

getDeleted

public java.util.List getDeleted()
Returns a list of filenames which has been deleted

Returns:
the list of filenames

hasBeenAdded

boolean hasBeenAdded(java.lang.String filename)
Checks if an filename already has been added to the result list

Parameters:
filename - the filename to check
Returns:
true, if this filename already has been added