code: public void CreateID3Tag(ID3Tag pID3Tag) throws IOException {
          if (pID3Tag == null)
              return;
  
          if (!m_bAnalyzed)
              Analyze();
  
          if (m_aryFields.size() <= 0)
              return;
  
          pID3Tag.Header = "TAG";
          pID3Tag.Artist = GetFieldID3String(APE_TAG_FIELD_ARTIST);
          pID3Tag.Album = GetFieldID3String(APE_TAG_FIELD_ALBUM);
          pID3Tag.Title = GetFieldID3String(APE_TAG_FIELD_TITLE);
          pID3Tag.Comment = GetFieldID3String(APE_TAG_FIELD_COMMENT);
          pID3Tag.Year = GetFieldID3String(APE_TAG_FIELD_YEAR);
          String track = GetFieldString(APE_TAG_FIELD_TRACK);
          try {
              pID3Tag.Track = Short.parseShort(track);
          } catch (Exception e) {
              pID3Tag.Track = 255;
          }
          pID3Tag.Genre = (short) (new ID3Genre(GetFieldString(APE_TAG_FIELD_GENRE)).getGenre());
      }
docs: fills in an ID3_TAG using the current fields (useful for quickly converting the tag)