summaryrefslogtreecommitdiff
path: root/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java
diff options
context:
space:
mode:
authorguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-10-16 15:42:22 +0000
committerguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-10-16 15:42:22 +0000
commit62d1c9e1ef2a8ccf090759b44b5101a8f24c7a70 (patch)
tree101f06404971c42c7c8175b07af13d2390af66c7 /src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java
parent3302ba62a4160ee9a430bb44cadfde44483e572c (diff)
included yalpindexer in ant build script
git-svn-id: http://manut.eu/svn/yalp/trunk@17 f059d3a0-6783-47b7-97ff-1fe0bbf25129
Diffstat (limited to 'src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java')
-rw-r--r--src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java b/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java
index 34fe49b..47dd62a 100644
--- a/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java
+++ b/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java
@@ -6,7 +6,6 @@
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors: Manuel Traut and Volker Dahnke
- */
package YalpServer;
@@ -18,7 +17,6 @@ import de.hampelratte.id3.*;
import YalpInterfaces.*;
-/*
* Class FileInfoManager
*
* <em>Creates a Result out of FileInformations (ID3, etc)</em>
@@ -28,18 +26,15 @@ import YalpInterfaces.*;
* @version 0.1 14-12-2005<br>
*
* @see ServerControl
- */
public class FileInfoManager {
private Media fileInfo;
private EncodingType eType;
-/*
* Constructor: tries to get all Informations about a file
*
* @param file
- */
public FileInfoManager(File file) {
@@ -48,7 +43,6 @@ public class FileInfoManager {
this.fileInfo.path = file.getParent()+file.separator;
this.fileInfo.fileName = file.getName();
- /* check extensions is mp3 */
if( this.fileInfo.fileName.substring( this.fileInfo.fileName.length() - 3,
this.fileInfo.fileName.length()).equalsIgnoreCase( "mp3" ) )
{
@@ -59,31 +53,26 @@ public class FileInfoManager {
case EncodingType._MP3:
try
{
- /* opening mp3 file for reading and writing */
MP3File mp3 = new de.hampelratte.id3.MP3File(file.toString(), "r");
this.fileInfo.type = MediaType.SOUND;
if(mp3.hasID3v1Tag){
ID3v1Tag tag = mp3.readID3v1Tag();
- /* t.b.d. create StringProperties
this.fileInfo.album = tag.getAlbum();
this.fileInfo.author = tag.getArtist();
this.fileInfo.category = tag.getGenre();
this.fileInfo.name = tag.getTrack() +" - "+tag.getTitle();
this.fileInfo.year = tag.getYear();
- */
}
if(mp3.hasID3v2Tag){
// reading the ID3v2Tag
ID3v2Tag tag = mp3.readID3v2Tag();
- /* t.b.d. create StringProperties
this.fileInfo.album = tag.getAlbum();
this.fileInfo.author = tag.getArtist();
this.fileInfo.category = tag.getGenre();
this.fileInfo.year = tag.getYear();
- */
if( !(tag.getTrack().equals(""))){
this.fileInfo.name = tag.getTrack() +" - "+tag.getTitle();
} else {
@@ -114,13 +103,12 @@ public class FileInfoManager {
}
}
-/*
* returns the information to an media, found
* @return MediaChange
* Informations about the media
- */
public Media getInfo(){
return this.fileInfo;
}
}
+*/