|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.Extensions
public class Extensions
This class maintains the extensions that will assist in filtering file types. Filtering of file types takes place when duplicates are searched for. This class will parse a string for types to filter. If the parsing fails the extensions to filter are set to null
Field Summary | |
---|---|
static java.lang.String[] |
ALL_ITUNES_MEDIA_FORMATS
Both iTunes audio and video formats combined |
static java.lang.String[] |
DEFAULT_FORMATS
The default iTunesDSM files to filter |
static java.lang.String[] |
ITUNES_AUDIO_FORMATS
All of the file types that iTunes accepts as audio files |
static java.lang.String[] |
ITUNES_VIDEO_FORMATS
All of the file types that iTunes as video files |
Constructor Summary | |
---|---|
Extensions()
Creates a default extensions object |
|
Extensions(java.lang.String[] ext)
Contructs an Extensions object with a set of known file type extensions |
Method Summary | |
---|---|
static boolean |
equals(java.lang.String[] anArray,
java.lang.String[] testArray)
Returns a boolean as to whether the two given arrays are equal. |
java.lang.String[] |
getExtensions()
Returns the extensions |
void |
setExtensions(java.lang.String str)
Sets the file extensions to a given string. |
void |
setExtensions(java.lang.String[] ext)
Sets the array of extensions to a known array of extensions |
java.lang.String |
toString()
Returns a formatted string of extensions for display |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] ITUNES_AUDIO_FORMATS
public static final java.lang.String[] ITUNES_VIDEO_FORMATS
public static final java.lang.String[] ALL_ITUNES_MEDIA_FORMATS
public static final java.lang.String[] DEFAULT_FORMATS
Constructor Detail |
---|
public Extensions()
public Extensions(java.lang.String[] ext)
ext
- the array of file extensions to set the Extensions to.Method Detail |
---|
public void setExtensions(java.lang.String str)
str
- the string to parse for extensionspublic void setExtensions(java.lang.String[] ext)
ext
- the new array of extensionspublic java.lang.String[] getExtensions()
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean equals(java.lang.String[] anArray, java.lang.String[] testArray)
anArray
- the first array to test if it is equal to testArraytestArray
- the second array to test if it is equal to anArray
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |