|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.farng.mp3.AbstractMP3FileItem org.farng.mp3.AbstractMP3Fragment org.farng.mp3.id3.AbstractID3v2Frame org.farng.mp3.id3.ID3v2_2Frame org.farng.mp3.id3.ID3v2_3Frame
The extended header contains information that is not vital to the correct parsing of the tag information, hence the extended header is optional.
Extended header size | $xx xx xx xx | |
Extended Flags | $xx xx | |
Size of padding | $xx xx xx xx |
Where the 'Extended header size', currently 6 or 10 bytes, excludes itself. The 'Size of padding' is simply the total tag size excluding the frames and the headers, in other words the padding. The extended header is considered separate from the header proper, and as such is subject to unsynchronisation.
The extended flags are a secondary flag set which describes further attributes of the tag. These attributes are currently defined as follows
%x0000000 00000000
x - CRC data present
If this flag is set four bytes of CRC-32 data is appended to the extended header. The CRC should be calculated before unsynchronisation on the data between the extended header and the padding, i.e. the frames and only the frames.
Total frame CRC | $xx xx xx xx |
Field Summary | |
protected boolean |
compression
|
protected boolean |
encryption
|
protected boolean |
fileAlterPreservation
|
protected boolean |
groupingIdentity
|
protected boolean |
readOnly
|
protected boolean |
tagAlterPreservation
|
Constructor Summary | |
ID3v2_3Frame()
Creates a new ID3v2_3Frame object. |
|
ID3v2_3Frame(AbstractID3v2Frame frame)
Creates a new ID3v2_4Frame object. |
|
ID3v2_3Frame(AbstractID3v2FrameBody body)
Creates a new ID3v2_3Frame object. |
|
ID3v2_3Frame(boolean readOnly,
boolean groupingIdentity,
boolean compression,
boolean encryption,
AbstractID3v2FrameBody body)
Creates a new ID3v2_3Frame object. |
|
ID3v2_3Frame(ID3v2_3Frame copyObject)
Creates a new ID3v2_3Frame object. |
|
ID3v2_3Frame(java.io.RandomAccessFile file)
Creates a new ID3v2_3Frame object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if this object and its body equals the argument and its body. |
int |
getSize()
|
void |
read(java.io.RandomAccessFile file)
import java.io.IOException; import java.io.RandomAccessFile; read from current file pointer position. |
protected void |
setAlterPreservation()
|
void |
write(java.io.RandomAccessFile file)
Method to write this object to the file argument at is current file pointer position. |
Methods inherited from class org.farng.mp3.id3.AbstractID3v2Frame |
getIdentifier, isValidID3v2FrameIdentifier, readBody, toString |
Methods inherited from class org.farng.mp3.AbstractMP3Fragment |
getBody, isSubsetOf, setBody |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean compression
protected boolean encryption
protected boolean fileAlterPreservation
protected boolean groupingIdentity
protected boolean readOnly
protected boolean tagAlterPreservation
Constructor Detail |
public ID3v2_3Frame()
public ID3v2_3Frame(AbstractID3v2FrameBody body)
public ID3v2_3Frame(ID3v2_3Frame copyObject)
public ID3v2_3Frame(boolean readOnly, boolean groupingIdentity, boolean compression, boolean encryption, AbstractID3v2FrameBody body)
public ID3v2_3Frame(AbstractID3v2Frame frame)
public ID3v2_3Frame(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
Method Detail |
public int getSize()
getSize
in class ID3v2_2Frame
public boolean equals(java.lang.Object obj)
AbstractMP3Fragment
getIdentifier
id string.
equals
in class AbstractMP3Fragment
obj
- object to determine equality of
public void read(java.io.RandomAccessFile file) throws java.io.IOException, InvalidTagException
AbstractMP3FileItem
read
in class ID3v2_2Frame
java.io.IOException
InvalidTagException
public void write(java.io.RandomAccessFile file) throws java.io.IOException
AbstractMP3FileItem
write
in class ID3v2_2Frame
java.io.IOException
protected void setAlterPreservation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |