|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.randommedia.AbstractMediaDirectory
public abstract class AbstractMediaDirectory
A filesystem directory (with subdirectories and JAR files) full of media items.
Constructor Summary | |
---|---|
AbstractMediaDirectory(File dir,
ZipCapableFileFilter filt)
Creates and initializes a RandomMediaDirectory object with the given directory and fileFilter. |
|
AbstractMediaDirectory(File dir,
ZipCapableFileFilter filt,
boolean shouldRefresh)
Creates and initializes a RandomMediaDirectory object with the given file and fileFilter. |
Method Summary | |
---|---|
protected boolean |
acceptEntry(JarEntry j)
Describe acceptEntry method here. |
protected boolean |
acceptFile(File f)
Describe acceptFile method here. |
protected void |
addSubdirectory(File f)
Describe addSubdirectory method here. |
protected void |
addURL(URL u)
Describe addURL method here. |
protected void |
clearURLs()
Describe clearURLs method here. |
protected String |
getAbsoluteDirectoryPath()
Describe getAbsoluteDirectoryPath method here. |
File |
getDirectory()
Get the Directory. |
protected String |
getDirectoryString()
Describe getDirectoryString method here. |
String |
getName()
Returns the file name of this directory. |
int |
getSize()
Number of media URL's in this directory. |
Vector<File> |
getSubdirectories()
Return all subdirectories in this directory. |
protected URL |
getURLIndex(int i)
Describe getURLIndex method here. |
Vector<URL> |
getURLVector()
Return all media URLs in this directory. |
boolean |
isEnabled()
If this directory is enabled |
protected File[] |
listFiles()
Describe listFiles method here. |
protected void |
setDirectory(File newDirectory)
Set the Directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMediaDirectory(File dir, ZipCapableFileFilter filt)
dir
- a File
valuefilt
- a ZipCapableFileFilter
valuepublic AbstractMediaDirectory(File dir, ZipCapableFileFilter filt, boolean shouldRefresh)
dir
- a File
valuefilt
- a ZipCapableFileFilter
valueshouldRefresh
- a boolean
valueMethod Detail |
---|
public File getDirectory()
protected void setDirectory(File newDirectory)
newDirectory
- a File
valueprotected File[] listFiles()
listFiles
method here.
File[]
valueprotected String getAbsoluteDirectoryPath()
getAbsoluteDirectoryPath
method here.
String
valueprotected String getDirectoryString()
getDirectoryString
method here.
String
valueprotected void addSubdirectory(File f)
addSubdirectory
method here.
f
- a File
valueprotected void addURL(URL u)
addURL
method here.
u
- an URL
valueprotected void clearURLs()
clearURLs
method here.
protected URL getURLIndex(int i)
getURLIndex
method here.
i
- an int
value
URL
valuepublic String getName()
String
valueprotected boolean acceptEntry(JarEntry j)
acceptEntry
method here.
j
- a JarEntry
value
boolean
valueprotected boolean acceptFile(File f)
acceptFile
method here.
f
- a File
value
boolean
valuepublic Vector<URL> getURLVector()
Vector
valuepublic Vector<File> getSubdirectories()
Vector
valuepublic boolean isEnabled()
boolean
valuepublic int getSize()
int
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |