|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcore.DuplicateFiles
public class DuplicateFiles
This class is used to identify Duplicate files that iTunes creates when iTunes is set to keep the music folder organized. As of version 9 iTunes contains this setting in Edit > Preferences > Advanced > Keep iTunes Media folder organized. Duplicates are found by inspecting file names for iteration counts. If no duplicates are in a folder than a track might be named "01 Track.mp3". If there are duplicates of Track that iTunes created they will be named "01 Track i.mp3" where i is the number of that duplicate.
| Constructor Summary | |
|---|---|
DuplicateFiles()
Creates an empty DuplicateFiles object. |
|
| Method Summary | |
|---|---|
java.util.ArrayList<java.io.File> |
getDuplicatesInFolder(java.io.File[] filesInFolder)
Returns an array list of the files that are found to be duplicates within the given folder. |
boolean |
isDuplicate(java.io.File file,
java.io.File[] directoryFiles)
Determines whether a file is a duplicate given the other files in that same directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DuplicateFiles()
| Method Detail |
|---|
public boolean isDuplicate(java.io.File file,
java.io.File[] directoryFiles)
file - the file to test whether it is a duplicatedirectoryFiles - all of the file in a given directory including the
test file
public java.util.ArrayList<java.io.File> getDuplicatesInFolder(java.io.File[] filesInFolder)
throws java.lang.NullPointerException
filesInFolder - the array of files in a directory to check for duplicates
java.lang.NullPointerException - thrown if the fileInFolder array is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||