Logo Search packages:      
Sourcecode: libjlayer-java version File versions  Download package

void javazoom::jl::decoder::Bitstream::loadID3v2 ( InputStream  in  )  [inline, private]

Load ID3v2 frames.

Parameters:
in MP3 InputStream.
Author:
JavaZOOM

Definition at line 170 of file Bitstream.java.

References header_pos(), and readID3v2Header().

Referenced by Bitstream().

      {           
            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);
                  }                 
            }
            catch (IOException e)
            {}
      }


Generated by  Doxygen 1.6.0   Back to index