|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelliker.id3.ID3v2ExtendedHeader
Field Summary | |
private byte[] |
crc
|
private int |
CRC_SIZE
|
private boolean |
crced
|
private int |
EXT_HEAD_LOCATION
|
private boolean |
imageEncode
|
private int |
imageRestrict
|
private int[] |
MAX_TAG_FRAMES_TABLE
|
private int[] |
MAX_TAG_SIZE_TABLE
|
private int[] |
MAX_TEXT_SIZE_TABLE
|
private int |
maxFrames
|
private int |
maxTagSize
|
private int |
maxTextSize
|
private int |
MIN_SIZE
|
private java.io.File |
mp3
|
private int |
numFlagBytes
|
private int |
size
|
private boolean |
textEncode
|
private boolean |
update
|
Constructor Summary | |
ID3v2ExtendedHeader(java.io.File mp3)
Create an extended header object from the file passed. |
Method Summary | |
byte[] |
getBytes()
Return an array of bytes representing this extended header in the standard format to be written to a file. |
byte[] |
getCRC()
If there is crc data in the extended header, then the attached 5 byte crc will be returned. |
boolean |
getCRCed()
Returns true if CRC information is provided for this tag |
private byte[] |
getFlagBytes()
A helper function for the getBytes method that returns a byte array representing the extended flags field of the extended header. |
boolean |
getImageEncode()
Returns true if the image encode flag is set |
int |
getImageRestriction()
Returns the value of the image restriction field or -1 if not set |
int |
getMaxFrames()
Returns the maximum number of frames if set. |
int |
getMaxTagSize()
Returns the maximum tag size or -1 if unset |
int |
getMaxTextSize()
Returns the maximum length of a string if set or -1 |
int |
getNumFlagBytes()
Returns the number of extended flag bytes |
int |
getSize()
Returns the size of the extended header |
boolean |
getTextEncode()
Returns true if the text encode flag is set |
boolean |
getUpdate()
Returns true if this tag is an update of a previous tag |
private void |
parseFlags(byte[] flags)
Parse the extended header flag bytes |
private void |
readExtendedHeader(java.io.RandomAccessFile raf)
Read the information in the file's extended header |
java.lang.String |
toString()
Returns a string representation of this object that contains all information within. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final int EXT_HEAD_LOCATION
private final int MIN_SIZE
private final int CRC_SIZE
private final int[] MAX_TAG_FRAMES_TABLE
private final int[] MAX_TAG_SIZE_TABLE
private final int[] MAX_TEXT_SIZE_TABLE
private java.io.File mp3
private int size
private int numFlagBytes
private boolean update
private boolean crced
private byte[] crc
private int maxFrames
private int maxTagSize
private boolean textEncode
private int maxTextSize
private boolean imageEncode
private int imageRestrict
Constructor Detail |
public ID3v2ExtendedHeader(java.io.File mp3) throws java.io.FileNotFoundException, java.io.IOException, ID3v2FormatException
mp3
- the file to read/write to
java.io.FileNotFoundException
- if an error occurs
java.io.IOException
- if an error occurs
ID3v2FormatException
- if an error occursMethod Detail |
private void readExtendedHeader(java.io.RandomAccessFile raf) throws java.io.FileNotFoundException, java.io.IOException, ID3v2FormatException
raf
- the open file to read from
java.io.FileNotFoundException
- if an error occurs
java.io.IOException
- if an error occurs
ID3v2FormatException
- if an error occursprivate void parseFlags(byte[] flags) throws ID3v2FormatException
flags
- the array of extended flags
ID3v2FormatException
- if an error occurspublic byte[] getBytes()
private byte[] getFlagBytes()
public int getSize()
public int getNumFlagBytes()
public int getMaxFrames()
public int getMaxTagSize()
public boolean getTextEncode()
public int getMaxTextSize()
public boolean getImageEncode()
public int getImageRestriction()
public boolean getUpdate()
public boolean getCRCed()
public byte[] getCRC()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |