|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.service.FileUtils
public class FileUtils
This class implements utilities for (MP3) file manipulation. This class knows about the conventions MusiController uses for the storage of its MP3 files.
Constructor Summary | |
---|---|
FileUtils()
No arguments constructor. |
Method Summary | |
---|---|
static java.lang.String |
getArchivedir()
Getter for the music archive directory. |
static java.lang.String |
getCoverdir()
Getter for the directory containing the coverart. |
static java.lang.String |
getIndexdir()
Getter for the directory containing the lucene-index. |
java.lang.String |
getMusicDirectory()
Getter for the music archive directory. |
static java.lang.String |
getMyAccountdir()
Getter for the directory containing the myAccount settings. |
static java.lang.String[] |
getNewSongDestination(MusicArchiveEntryBean song)
Returns the location of the MP3 file of a new song. |
static java.lang.String |
getReviewdir()
Getter for the directory containing the reviews. |
protected static java.lang.String |
getStorageHashname(MusicArchiveEntryBean song)
Determine the storage hash (directory) name where this MP3 file will be written to. |
static java.lang.String |
getUnpackdir()
Returns the location of the directory where uploaded music archives get unpacked. |
static java.lang.String |
getUploaddir()
|
void |
setBasedir(java.lang.String basedir)
Setter for the music archive directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUtils()
Method Detail |
---|
public void setBasedir(java.lang.String basedir) throws java.lang.Exception
basedir
- The base directory
java.lang.Exception
public static java.lang.String getArchivedir()
public java.lang.String getMusicDirectory()
MusicDirProvider
getMusicDirectory
in interface MusicDirProvider
public static java.lang.String getMyAccountdir()
public static java.lang.String getCoverdir()
public static java.lang.String getReviewdir()
public static java.lang.String getIndexdir()
public static java.lang.String getUploaddir()
public static java.lang.String getUnpackdir()
protected static java.lang.String getStorageHashname(MusicArchiveEntryBean song)
song
- The music archive entry to find the storage hash name for.
public static java.lang.String[] getNewSongDestination(MusicArchiveEntryBean song)
song
-
ImporterException
- If the song is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |