Android Open Source - nagare Play List Factory






From Project

Back to project page nagare.

License

The source code is released under:

Copyright (c) 2011 peterh@sapros.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...

If you think the Android project nagare listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.giantrabbit.nagare;
// w  w  w . j  a v a 2s  .  c  o  m
import android.net.Uri;

public class PlayListFactory
{
  public static PlayListFile create(String mime_type, Uri uri)
  {
    if (mime_type.equals("audio/x-scpls"))
    {
      return new PlsFile(uri);
    }
    if (mime_type.equals("application/pls"))
    {
      return new PlsFile(uri);
    }
    if (mime_type.equals("audio/x-mpegurl"))
    {
      return new M3UFile(uri);
    }
    return null;
  }
}




Java Source Code List

com.giantrabbit.nagare.DownloadThread.java
com.giantrabbit.nagare.INagareService.java
com.giantrabbit.nagare.M3UFile.java
com.giantrabbit.nagare.NagareService.java
com.giantrabbit.nagare.Nagare.java
com.giantrabbit.nagare.PlayListFactory.java
com.giantrabbit.nagare.PlayListFile.java
com.giantrabbit.nagare.PlayList.java
com.giantrabbit.nagare.PlsFile.java
com.giantrabbit.nagare.ShoutcastFile.java