public static boolean isId3Tag(RandomAccessFile raf) throws IOException {
  if (!isID3V2Header(raf)) {
    return false;
  }
  byte[] tagHeader=new byte[FIELD_TAG_SIZE_LENGTH];
  raf.seek(raf.getFilePointer() + 6);
  raf.read(tagHeader);
  ByteBuffer bb=ByteBuffer.wrap(tagHeader);
  int size=ID3SyncSafeInteger.bufferToValue(bb);
  raf.seek(size + TAG_HEADER_LENGTH);
  return true;
}

public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return false ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + 6 ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size = ID3SyncSafeInteger . bufferToValue ( bb ) ; raf . seek ( size + TAG_HEADER_LENGTH ) ; return true ; }
determines if file contain an id3 tag and if so positions the file pointer just after the end of the tag . this method is used by non mp3s ( such as . ogg and . flac ) to determine if they contain an id3 tag
