diff options
Diffstat (limited to 'src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java')
| -rw-r--r-- | src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileInfoManager.java | 14 |
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; } } +*/ |
