Logo Search packages:      
Sourcecode: jampal version File versions  Download package

int pgbennett::id3::ID3v2Frames::getLength (  ) [inline]

Returns the length in bytes of all the frames contained in this object. Empty frames are dropped from this calculation.

Returns:
the length of all the frames contained in this object.

Definition at line 485 of file ID3v2Frames.java.

References pgbennett::id3::ID3v2Frame::getFrameLength(), and pgbennett::id3::ID3v2Frame::isEmpty().

Referenced by pgbennett::id3::ID3v2Tag::getBytes(), getBytes(), and pgbennett::id3::ID3v2Tag::getSize().

                         {
    int length = 0;

    Iterator it = this.values().iterator();
    while (it.hasNext()) {
      ID3v2Frame frame = (ID3v2Frame) it.next();

      if (!frame.isEmpty()) {
        length += frame.getFrameLength();
      }
    }

    return length;
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index