public byte [ ] getBytes ( ) { byte b [ ] = new byte [ getLength ( ) ] ; int bytesCopied = 0 ; Iterator < V > it = this . values ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { ID3v2Frame frame = ( ID3v2Frame ) it . next ( ) ; System . arraycopy ( frame . getFrameBytes ( ) , 0 , b , bytesCopied , frame . getFrameLength ( ) ) ; bytesCopied += frame . getFrameLength ( ) ; } return b ; }
Return an array bytes containing all frames contained in this object . This can be used to easily write the frames to a file .