|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrame
org.jaudiotagger.tag.id3.AbstractID3v2Frame
org.jaudiotagger.tag.id3.ID3v24Frame
public class ID3v24Frame
Represents an ID3v2.4 frame.
| Nested Class Summary | |
|---|---|
(package private) class |
ID3v24Frame.EncodingFlags
This represents a frame headers Encoding Flags |
(package private) class |
ID3v24Frame.StatusFlags
Member Class This represents a frame headers Status Flags Make adjustments if necessary based on frame type and specification. |
| Field Summary | |
|---|---|
protected static int |
FRAME_DATA_LENGTH_SIZE
|
protected static int |
FRAME_ENCRYPTION_INDICATOR_SIZE
|
protected static int |
FRAME_FLAGS_SIZE
|
protected static int |
FRAME_GROUPING_INDICATOR_SIZE
|
protected static int |
FRAME_HEADER_SIZE
|
protected static int |
FRAME_ID_SIZE
|
protected static int |
FRAME_SIZE_SIZE
|
private static java.util.regex.Pattern |
validFrameIdentifier
|
| Fields inherited from class org.jaudiotagger.tag.id3.AbstractID3v2Frame |
|---|
encodingFlags, frameSize, identifier, statusFlags, TYPE_FRAME, TYPE_FRAME_SIZE, UNSUPPORTED_ID |
| Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagFrame |
|---|
frameBody |
| Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem |
|---|
logger |
| Constructor Summary | |
|---|---|
ID3v24Frame()
|
|
ID3v24Frame(AbstractID3v2Frame frame)
Creates a new ID3v2_4Frame datatype based on another frame of different version Converts the framebody to the equivalent v24 framebody or to UnsupportedFrameBody if identifier is unknown. |
|
ID3v24Frame(java.nio.ByteBuffer byteBuffer)
Deprecated. use ID3v24Frame(ByteBuffer,String) instead |
|
ID3v24Frame(java.nio.ByteBuffer byteBuffer,
java.lang.String loggingFilename)
Creates a new ID3v24Frame datatype by reading from byteBuffer. |
|
ID3v24Frame(ID3v24Frame frame)
Copy Constructor:Creates a new ID3v2_4Frame datatype based on another frame. |
|
ID3v24Frame(Lyrics3v2Field field)
Creates a new ID3v2_4Frame datatype based on Lyrics3. |
|
ID3v24Frame(java.lang.String identifier)
Creates a new ID3v2_4Frame of type identifier. |
|
| Method Summary | |
|---|---|
void |
createStructure()
Return String Representation of body |
private void |
createV24FrameFromV23Frame(ID3v23Frame frame)
|
boolean |
equals(java.lang.Object obj)
Returns true if this datatype and its body equals the argument and its body. |
protected AbstractID3v2Frame.EncodingFlags |
getEncodingFlags()
Get Encoding Flags Object |
int |
getSize()
Return size of frame |
protected AbstractID3v2Frame.StatusFlags |
getStatusFlags()
Get Status Flags Object |
boolean |
isBinary()
Determines whether the represented field contains (is made up of) binary data, instead of text data. Software can identify fields to be displayed because they are human readable if this method returns false. |
boolean |
isCommon()
Identifies a field to be of common use. Some software may differ between common and not common fields. |
boolean |
isValidID3v2FrameIdentifier(java.lang.String identifier)
Does the frame identifier meet the syntax for a idv3v2 frame identifier. |
void |
read(java.nio.ByteBuffer byteBuffer)
Read the frame from the specified file. |
void |
write(java.io.ByteArrayOutputStream tagBuffer)
Write the frame. |
| Methods inherited from class org.jaudiotagger.tag.id3.AbstractID3v2Frame |
|---|
copyContent, getId, getIdentifier, getLoggingFilename, getRawContent, isBinary, isEmpty, readBody, readBody, setLoggingFilename |
| Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrame |
|---|
getBody, isSubsetOf, setBody |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jaudiotagger.tag.TagField |
|---|
toString |
| Field Detail |
|---|
private static java.util.regex.Pattern validFrameIdentifier
protected static final int FRAME_DATA_LENGTH_SIZE
protected static final int FRAME_ID_SIZE
protected static final int FRAME_FLAGS_SIZE
protected static final int FRAME_SIZE_SIZE
protected static final int FRAME_ENCRYPTION_INDICATOR_SIZE
protected static final int FRAME_GROUPING_INDICATOR_SIZE
protected static final int FRAME_HEADER_SIZE
| Constructor Detail |
|---|
public ID3v24Frame()
public ID3v24Frame(java.lang.String identifier)
identifier - defines the type of body to be createdpublic ID3v24Frame(ID3v24Frame frame)
frame -
public ID3v24Frame(AbstractID3v2Frame frame)
throws InvalidFrameException
frame - to construct a new frame from
InvalidFrameException
public ID3v24Frame(Lyrics3v2Field field)
throws InvalidTagException
field -
InvalidTagException
public ID3v24Frame(java.nio.ByteBuffer byteBuffer,
java.lang.String loggingFilename)
throws InvalidFrameException
byteBuffer - to read fromloggingFilename -
InvalidFrameException
public ID3v24Frame(java.nio.ByteBuffer byteBuffer)
throws InvalidFrameException
ID3v24Frame(ByteBuffer,String) instead
byteBuffer - to read from
InvalidFrameException| Method Detail |
|---|
private void createV24FrameFromV23Frame(ID3v23Frame frame)
throws InvalidFrameException
InvalidFrameExceptionpublic boolean equals(java.lang.Object obj)
AbstractTagFramegetSubId id string.
equals in class AbstractTagFrameobj -
public int getSize()
getSize in class AbstractTagItem
public void read(java.nio.ByteBuffer byteBuffer)
throws InvalidFrameException
read in class AbstractTagItembyteBuffer - to read the frame from
InvalidFrameExceptionpublic void write(java.io.ByteArrayOutputStream tagBuffer)
write in class AbstractID3v2Framejava.io.IOExceptionprotected AbstractID3v2Frame.StatusFlags getStatusFlags()
getStatusFlags in class AbstractID3v2Frameprotected AbstractID3v2Frame.EncodingFlags getEncodingFlags()
getEncodingFlags in class AbstractID3v2Framepublic boolean isValidID3v2FrameIdentifier(java.lang.String identifier)
identifier - to be checked
public void createStructure()
createStructure in class AbstractID3v2Framepublic boolean isCommon()
TagField
public boolean isBinary()
TagFieldfalse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||