Examples of AlbumInfoParserImpl


Examples of com.github.hakko.musiccabinet.parser.lastfm.AlbumInfoParserImpl

 
  @Before
  public void loadFunctionDependency() throws ApplicationException {
    PostgreSQLUtil.loadFunction(dao, UPDATE_ALBUMINFO);
   
    aiNirvana = new AlbumInfoParserImpl(new ResourceUtil(
        AI_NIRVANA_FILE).getInputStream()).getAlbumInfo();
    aiHurts = new AlbumInfoParserImpl(new ResourceUtil(
        AI_HURTS_FILE).getInputStream()).getAlbumInfo();
    aiSchuller = new AlbumInfoParserImpl(new ResourceUtil(
        AI_SCHULLER_FILE).getInputStream()).getAlbumInfo();
    aiNirvana2 = new AlbumInfoParserImpl(new ResourceUtil(
        AI_NIRVANA2_FILE).getInputStream()).getAlbumInfo();
    aiNirvana3 = new AlbumInfoParserImpl(new ResourceUtil(
        AI_NIRVANA3_FILE).getInputStream()).getAlbumInfo();
   
    deleteArtists();
    deleteLibraryTracks();
    createLibraryTracks(aiNirvana, aiNirvana2, aiNirvana3, aiHurts, aiSchuller);
View Full Code Here

Examples of com.github.hakko.musiccabinet.parser.lastfm.AlbumInfoParserImpl

      try {
        WSResponse wsResponse = albumInfoClient.getAlbumInfo(album);
        if (wsResponse.wasCallAllowed() && wsResponse.wasCallSuccessful()) {
          StringUtil stringUtil = new StringUtil(wsResponse.getResponseBody());
          AlbumInfoParser aiParser =
            new AlbumInfoParserImpl(stringUtil.getInputStream());
          albumInfos.add(aiParser.getAlbumInfo());
         
          if (albumInfos.size() == BATCH_SIZE) {
            albumInfoDao.createAlbumInfo(albumInfos);
            albumInfos.clear();
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.