javazoom.jl.decoder.Bitstream.readID3v2Header()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中javazoom.jl.decoder.Bitstream.readID3v2Header()方法的一些代码示例,展示了Bitstream.readID3v2Header()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bitstream.readID3v2Header()方法的具体详情如下:
包路径:javazoom.jl.decoder.Bitstream
类名称:Bitstream
方法名:readID3v2Header

Bitstream.readID3v2Header介绍

[英]Parse ID3v2 tag header to find out size of ID3v2 frames.
[中]解析ID3v2标记头以找出ID3v2帧的大小。

代码示例

代码示例来源:origin: com.googlecode.soundlibs/jlayer

size = readID3v2Header(in);
header_pos = size;

代码示例来源:origin: javazoom/jlayer

size = readID3v2Header(in);
header_pos = size;

代码示例来源:origin: pdudits/soundlibs

size = readID3v2Header(in);
header_pos = size;

代码示例来源:origin: com.badlogicgames.jlayer/jlayer

/**
 * Load ID3v2 frames.
 * @param in MP3 InputStream.
 * @author JavaZOOM
 */
private void loadID3v2 (InputStream in) {
  int size = -1;
  try {
    // Read ID3v2 header (10 bytes).
    in.mark(10);
    size = readID3v2Header(in);
    header_pos = size;
  } catch (IOException e) {
  } finally {
    try {
      // Unread ID3v2 header (10 bytes).
      in.reset();
    } catch (IOException e) {
    }
  }
  // Load ID3v2 tags.
  try {
    if (size > 0) {
      rawid3v2 = new byte[size];
      in.read(rawid3v2, 0, rawid3v2.length);
      parseID3v2Frames(rawid3v2);
    }
  } catch (IOException e) {
  }
}

相关文章