Examples of TagInfoParserImpl


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

 
  @Before
  public void loadFunctionDependency() throws ApplicationException {
    PostgreSQLUtil.loadFunction(dao, UPDATE_TAGINFO);
   
    tiDisco = new TagInfoParserImpl(new ResourceUtil(
        TI_DISCO_FILE).getInputStream()).getTagInfo();
    tiPop = new TagInfoParserImpl(new ResourceUtil(
        TI_POP_FILE).getInputStream()).getTagInfo();
    tiSludge = new TagInfoParserImpl(new ResourceUtil(
        TI_SLUDGE_FILE).getInputStream()).getTagInfo();

    deleteTags();
   
    tagDao.createTags(Arrays.asList(tiDisco.getTagName(),
View Full Code Here

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

   
    for (String tag : tags) {
      WSResponse wsResponse = tagInfoClient.getTagInfo(tag, lastFmSettingsService.getLang());
      if (wsResponse.wasCallAllowed() && wsResponse.wasCallSuccessful()) {
        StringUtil stringUtil = new StringUtil(wsResponse.getResponseBody());
        TagInfoParser tiParser = new TagInfoParserImpl(stringUtil.getInputStream());
        tagInfos.add(tiParser.getTagInfo());
      }
      addFinishedOperation();
    }
    tagInfoDao.createTagInfo(tagInfos);
  }
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.