|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmyDataBases.MyDirectory
public class MyDirectory
Class MyDirectory ; allows to retrieve the names of the media to sort as well as other characteristics.
The media can be stored in a folder, in which case they must be the only thing present in it, or their names and other characteristics can be stored in the data/media.xml file. The aim of this class is to allow other part of this program to access quickly and simply to these informations.
Field Summary | |
---|---|
private java.lang.String[] |
content
The list of the media contained in the folder. |
private java.lang.String |
mediaPath
The path to the place where media are stored, either a file or a folder. |
Constructor Summary | |
---|---|
MyDirectory(java.lang.String path)
Creates an instance of MyDirectory and sets its attributes. |
Method Summary | |
---|---|
java.lang.Integer[] |
getAllMedia()
Returns an array of Integer containing the ID of all the media present in the folder. |
java.lang.String |
getMedia(java.lang.Integer ID)
Returns the path of the media wanted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String mediaPath
private java.lang.String[] content
Constructor Detail |
---|
public MyDirectory(java.lang.String path)
path
- Path to the directory to be used or to the file containing the URLsMethod Detail |
---|
public java.lang.Integer[] getAllMedia()
public java.lang.String getMedia(java.lang.Integer ID)
ID
- The identifier of the media wanted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |