Top Description Fields Constructors Methods
org.apache.commons.compress.changes

public Class ChangeSetResults

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List

Stores the results of a performed ChangeSet operation.

Field Summary

Modifier and TypeField and Description
private final List<String>
private final List<String>
private final List<String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addedFromChangeSet(final String
the name of the file
fileName
)

Adds the name of a file to the result list which has been copied from the ChangeSet to the target stream

pack-priv void
addedFromStream(final String
the file name which has been added from the original stream
fileName
)

Adds the name of a file to the result list which has been copied from the source stream to the target stream.

pack-priv void
deleted(final String
the file which has been deleted
fileName
)

Adds the file name of a recently deleted file to the result list.

public List<String>

Returns:

the list of file names
getAddedFromChangeSet
()

Gets a list of file names which has been added from the ChangeSet

public List<String>

Returns:

the list of file names
getAddedFromStream
()

Gets a list of file names which has been added from the original stream

public List<String>

Returns:

the list of file names
getDeleted
()

Gets a list of file names which has been deleted

pack-priv boolean

Returns:

true, if this file name already has been added
hasBeenAdded
(final String
the file name to check
fileName
)

Tests if a file name already has been added to the result list

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addedFromChangeSetback to summary
private final List<String> addedFromChangeSet
addedFromStreamback to summary
private final List<String> addedFromStream
deletedback to summary
private final List<String> deleted

Constructor Detail

ChangeSetResultsback to summary
public ChangeSetResults()

Method Detail

addedFromChangeSetback to summary
pack-priv void addedFromChangeSet(final 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:String

the name of the file

addedFromStreamback to summary
pack-priv void addedFromStream(final 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:String

the file name which has been added from the original stream

deletedback to summary
pack-priv void deleted(final String fileName)

Adds the file name of a recently deleted file to the result list.

Parameters
fileName:String

the file which has been deleted

getAddedFromChangeSetback to summary
public List<String> getAddedFromChangeSet()

Gets a list of file names which has been added from the ChangeSet

Returns:List<String>

the list of file names

getAddedFromStreamback to summary
public List<String> getAddedFromStream()

Gets a list of file names which has been added from the original stream

Returns:List<String>

the list of file names

getDeletedback to summary
public List<String> getDeleted()

Gets a list of file names which has been deleted

Returns:List<String>

the list of file names

hasBeenAddedback to summary
pack-priv boolean hasBeenAdded(final String fileName)

Tests if a file name already has been added to the result list

Parameters
fileName:String

the file name to check

Returns:boolean

true, if this file name already has been added