Package us.jyg.freshet.util

Examples of us.jyg.freshet.util.SongData


                            File f;
                            while( (f=miner.next()) != null) {
                                if (f.getName().matches(".*[mM][pP]3")) {
                                    if (!finalSongManager.songIsInDb(f)) {
                                        try {
                                            SongData songData = new SongData(f);
                                            Song song = finalSongManager.saveSong(songData);
                                            log.debug("Added: " + song.getName() + " ("+song.getId() +")"+
                                                    ", " + song.getAlbum().getName() +
                                                    ", " + song.getArtist().getName() +
                                                    ", " + song.getGenre().getName());
View Full Code Here


        Miner miner = new Miner(path);
    File f;
    while( (f=miner.next()) != null) {
      try {
        if (f.getName().matches(".*[mM][pP]3")) {
          SongData songData = new SongData(f);
          songManager.saveSong(songData);
//          log.debug("Saved: " + song.getName() + " ("+song.getId() +")"+
//              ", " + song.getAlbum().getName() +
//              ", " + song.getArtist().getName() +
//              ", " + song.getGenre().getName());
View Full Code Here

    Miner miner = new Miner("test/data");
    File f;
    while( (f=miner.next()) != null) {
      try {
        if (f.getName().matches(".*[mM][pP]3")) {
          SongData songData = new SongData(f);
          Song song = songManager.saveSong(songData);
          log.debug("Saved: " + song.getName() + " ("+song.getId() +")"+
              ", " + song.getAlbum().getName() + "("+song.getAlbum().getId()+")"+
              ", " + song.getArtist().getName() "("+song.getArtist().getId()+")"+
              ", " + song.getGenre().getName() + "("+song.getGenre().getId()+")" );
View Full Code Here

    Miner miner = new Miner("test/data/mp3");
    File f;
    while( (f=miner.next()) != null) {
      try {
        if (f.getName().matches(".*[mM][pP]3")) {
          SongData songData = new SongData(f);
          Album album = albumDao.getAlbum(songData.getAlbum());
          Artist artist = artistDao.getArtist(songData.getArtist());
          Genre genre = genreDao.getGenre(songData.getGenre());
          Song song = new Song(songData.getName(), songData.getPath(), songData
              .getTrack(), album, artist, genre);
          songDao.saveSong(song);
//          log.debug("Saved: " + song.getName() + " ("+song.getId() +")"+
//              ", " + song.getAlbum().getName() +
//              ", " + song.getArtist().getName() +
View Full Code Here

TOP

Related Classes of us.jyg.freshet.util.SongData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.