本文整理汇总了Java中javazoom.spi.mpeg.sampled.file.tag.IcyInputStream类的典型用法代码示例。如果您正苦于以下问题:Java IcyInputStream类的具体用法?Java IcyInputStream怎么用?Java IcyInputStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IcyInputStream类属于javazoom.spi.mpeg.sampled.file.tag包,在下文中一共展示了IcyInputStream类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: loadShoutcastInfo
import javazoom.spi.mpeg.sampled.file.tag.IcyInputStream; //导入依赖的package包/类
/**
* Load shoutcast (ICY) info.
*
* @param input
* @param props
* @throws IOException
*/
protected void loadShoutcastInfo(InputStream input, HashMap<String, Object> props)
throws IOException
{
IcyInputStream icy = new IcyInputStream(new BufferedInputStream(input));
// HashMap metadata = icy.getTagHash();
MP3Tag titleMP3Tag = icy.getTag("icy-name");
if (titleMP3Tag != null)
props.put("title", ((String)titleMP3Tag.getValue()).trim());
MP3Tag[] meta = icy.getTags();
if (meta != null)
{
// StringBuffer metaStr = new StringBuffer();
for (int i = 0; i < meta.length; i++)
{
String key = meta[i].getName();
String value = ((String)icy.getTag(key).getValue()).trim();
props.put("mp3.shoutcast.metadata." + key, value);
}
}
}
开发者ID:JacobRoth,项目名称:romanov,代码行数:28,代码来源:MpegAudioFileReader.java
示例2: loadShoutcastInfo
import javazoom.spi.mpeg.sampled.file.tag.IcyInputStream; //导入依赖的package包/类
/**
* Load shoutcast (ICY) info.
*
* @param input
* @param props
* @throws IOException
*/
protected void loadShoutcastInfo(InputStream input, HashMap props) throws IOException
{
IcyInputStream icy = new IcyInputStream(new BufferedInputStream(input));
HashMap metadata = icy.getTagHash();
MP3Tag titleMP3Tag = icy.getTag("icy-name");
if (titleMP3Tag != null) props.put("title", ((String) titleMP3Tag.getValue()).trim());
MP3Tag[] meta = icy.getTags();
if (meta != null)
{
StringBuffer metaStr = new StringBuffer();
for (int i = 0; i < meta.length; i++)
{
String key = meta[i].getName();
String value = ((String) icy.getTag(key).getValue()).trim();
props.put("mp3.shoutcast.metadata." + key, value);
}
}
}
开发者ID:fredsa,项目名称:forplay,代码行数:26,代码来源:MpegAudioFileReader.java
示例3: loadShoutcastInfo
import javazoom.spi.mpeg.sampled.file.tag.IcyInputStream; //导入依赖的package包/类
/**
* Load shoutcast (ICY) info.
* @param input
* @param props
* @throws IOException
*/
protected void loadShoutcastInfo(InputStream input, HashMap props) throws IOException
{
IcyInputStream icy = new IcyInputStream(new BufferedInputStream(input));
HashMap metadata = icy.getTagHash();
MP3Tag titleMP3Tag = icy.getTag("icy-name");
if (titleMP3Tag != null) props.put("title",((String) titleMP3Tag.getValue()).trim());
MP3Tag[] meta = icy.getTags();
if (meta != null)
{
// metaStr is not used
//StringBuilder metaStr = new StringBuilder();
for (int i=0;i<meta.length;i++)
{
String key = meta[i].getName();
String value = ((String) icy.getTag(key).getValue()).trim();
props.put("mp3.shoutcast.metadata."+key, value);
}
}
}
开发者ID:projectestac,项目名称:jclic,代码行数:26,代码来源:MpegAudioFileReader.java
示例4: loadShoutcastInfo
import javazoom.spi.mpeg.sampled.file.tag.IcyInputStream; //导入依赖的package包/类
/**
* Load shoutcast (ICY) info.
*
* @param input
* @param props
* @throws IOException
*/
protected void loadShoutcastInfo(InputStream input, HashMap props)
throws IOException
{
IcyInputStream icy = new IcyInputStream(new BufferedInputStream(input));
// HashMap metadata = icy.getTagHash();
MP3Tag titleMP3Tag = icy.getTag("icy-name");
if (titleMP3Tag != null)
props.put("title", ((String)titleMP3Tag.getValue()).trim());
MP3Tag[] meta = icy.getTags();
if (meta != null)
{
// StringBuffer metaStr = new StringBuffer();
for (int i = 0; i < meta.length; i++)
{
String key = meta[i].getName();
String value = ((String)icy.getTag(key).getValue()).trim();
props.put("mp3.shoutcast.metadata." + key, value);
}
}
}
开发者ID:nkmrh,项目名称:BOX,代码行数:28,代码来源:MpegAudioFileReader.java
注:本文中的javazoom.spi.mpeg.sampled.file.tag.IcyInputStream类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论