public class ID3v2ExtendedHeader extends Object
| Constructor and Description |
|---|
ID3v2ExtendedHeader(RandomAccessInputStream raf)
Create an extended header object from the file passed.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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
|
String |
toString()
Returns a string representation of this object that contains all
information within.
|
public ID3v2ExtendedHeader(RandomAccessInputStream raf) throws IOException, ID3v2FormatException
mp3 - the file to read/write toFileNotFoundException - if an error occursIOException - if an error occursID3v2FormatException - if an error occurspublic byte[] getBytes()
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()
Copyright © 2014. All rights reserved.