From 62d1c9e1ef2a8ccf090759b44b5101a8f24c7a70 Mon Sep 17 00:00:00 2001 From: guest Date: Thu, 16 Oct 2008 15:42:22 +0000 Subject: included yalpindexer in ant build script git-svn-id: http://manut.eu/svn/yalp/trunk@17 f059d3a0-6783-47b7-97ff-1fe0bbf25129 --- .../YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java') 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 * * Creates a Result out of FileInformations (ID3, etc) @@ -28,18 +26,15 @@ import YalpInterfaces.*; * @version 0.1 14-12-2005
* * @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; } } +*/ -- cgit v1.2.3