Package com.github.hakko.musiccabinet.util

Examples of com.github.hakko.musiccabinet.util.ResourceUtil


  private static final String CONTENT = "Disco is a genre of dance-oriented music that originated in African American, gay and Hispanic American communities in 1970s. In what is considered a forerunner to disco style clubs in February 1970 New York City DJ David Mancuso opened The Loft, a members-only private dance club set in his own home. Most agree that the first disco songs were released in 1973, though some claim that Soul Makossa by <span title=\"Unknown artist\" class=\"bbcode_unknown\">Manu Dibango's</span> from 1972 to be the first disco record. The first article about disco was written in September 1973 by Vince Aletti for Rolling Stone Magazine. In 1974 New York City's WPIX-FM premiered the first disco radio show.\n \n Musical influences include funk, soul music. The disco sound has a soaring, often reverberated vocals over a steady &quot;four-on-the-floor&quot; beat, an eighth note (quaver) or sixteenth note (semi-quaver) hi-hat pattern with an open hi-hat on the off-beat, and prominent, syncopated electric bass line. Strings, horns, electric pianos, and electric guitars create a lush background sound. Orchestral instruments such as the flute are often used for solo melodies, and unlike in rock, lead guitar is rarely used.\n \n Well-known late 1970s disco performers included <a href=\"http://www.last.fm/music/Bee+Gees\" class=\"bbcode_artist\">Bee Gees</a>, <a href=\"http://www.last.fm/music/Donna+Summer\" class=\"bbcode_artist\">Donna Summer</a> and <a href=\"http://www.last.fm/music/The+Jacksons\" class=\"bbcode_artist\">The Jacksons</a>. Summer would become the first well-known and most popular female disco artist, and also played a part in pioneering the electronic sound that later became a part of disco (see below). While performers and singers garnered the lion's share of public attention, the behind-the-scenes producers played an equal, if not more important role in disco, since they often wrote the songs and created the innovative sounds and production techniques that were part of the &quot;disco sound&quot;. Many non-disco artists recorded disco songs at the height of disco's popularity, and films such as Saturday Night Fever and Thank God It's Friday contributed to disco's rise in mainstream popularity and ironically the beginning of its commercial decline. \n \n The resurgence of Disco, the second generation of Disco artists, commonly referred to as &quot;Dance&quot; or &quot;Dance Pop&quot; artists took shape. By this point, this style of music no longer favoured only the highly orchestral song structure. Post-disco (club music or dance) is the significant period in popular music history that followed the commercial &quot;death&quot; of disco music that emerged during late 1970s and early 1980s. The stripped-down musical trends followed from the DJ- and producer-driven, increasingly electronic and experimental side of disco, and were typified by the styles of dance-pop, boogie, <a href=\"http://www.last.fm/tag/italo%20disco\" class=\"bbcode_tag\" rel=\"tag\">italo disco</a> and the early alternative dance. <a href=\"http://www.last.fm/tag/techno\" class=\"bbcode_tag\" rel=\"tag\">techno</a> and <a href=\"http://www.last.fm/tag/house\" class=\"bbcode_tag\" rel=\"tag\">house</a> are both rooted in post-disco music. From 1990 forward, while not commonly referred to as Disco,  continued to gain mainstream success. By the 2000s, the direct decendant of Disco, called Nu Disco also started taking shape.";
 
  @Test
  public void resourceFileCorrectlyParsed() throws ApplicationException {
    TagInfoParser parser = new TagInfoParserImpl(
        new ResourceUtil(TAG_INFO_FILE).getInputStream());
   
    TagInfo tagInfo = parser.getTagInfo();
   
    Assert.assertEquals(NAME, tagInfo.getTagName());
    Assert.assertEquals(SUMMARY, tagInfo.getSummary());
View Full Code Here


    "last.fm/xml/similarartists.cher.xml";
 
  @Test
  public void resourceFileCorrectlyParsed() throws ApplicationException {
    ArtistSimilarityParser parser = new ArtistSimilarityParserImpl(
        new ResourceUtil(ARTIST_SIMILARITY_FILE).getInputStream());
 
    assertNotNull(parser.getArtist());
    assertNotNull(parser.getArtistRelations());

    assertTrue(parser.getArtist().getName().equals("Cher"));
View Full Code Here

     * previous one (relying on a schema, adding/removing a column of a table etc).
     */
    protected List<Integer> getDatabaseUpdates() {
      List<Integer> updates = new ArrayList<>();
      Properties props = new Properties();
      try (ResourceUtil resourceUtil = new ResourceUtil(VERSION_PROPERTIES)) {
        props.load(resourceUtil.getInputStream());
      } catch (IOException e) {
        LOG.warn("Could not load database updates list!", e);
      }
      for (Object key : props.keySet()) {
        updates.add(toInt(key.toString()));
View Full Code Here

    /*
     * Get DDL statements that a certain update maps to.
     */
    private String getStatements(int update) {
      String fileUrl = StringUtils.replace(UPDATE_FILE, UPDATE_KEY, ""+update);
      return new ResourceUtil(fileUrl).getContent();
    }
View Full Code Here

   */
  public static void loadFunction(JdbcTemplateDao dao, PostgreSQLFunction dbFunction) throws ApplicationException {
    JdbcTemplate jdbcTemplate = dao.getJdbcTemplate();

    // initialize drop procedure, if database has been dropped
    jdbcTemplate.execute(new ResourceUtil(DROP_FUNCTION.getURI()).getContent());

    // drop previous function version, if necessary
    jdbcTemplate.queryForInt("select util.drop_function( ?,? )",
        dbFunction.getSchema(), dbFunction.getFunctionName());

    // load new function body
    jdbcTemplate.execute(new ResourceUtil(dbFunction.getURI()).getContent());
  }
View Full Code Here

TOP

Related Classes of com.github.hakko.musiccabinet.util.ResourceUtil

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.