public class ID3v2Header extends Object
| Constructor and Description |
|---|
ID3v2Header(RandomAccessInputStream raf)
Create an id3v2header linked to the file passed as a parameter.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Return an array of bytes representing the header.
|
boolean |
getExperimental()
Returns true if the experimental bit of this header is set.
|
boolean |
getExtendedHeader()
Returns true if this tag has an extended header.
|
boolean |
getFooter()
Returns true if this tag has a footer.
|
int |
getHeaderSize()
Returns the size (in bytes) of this header.
|
int |
getMajorVersion()
Returns the major version of this id3v2 tag.
|
int |
getMinorVersion()
Return the minor version/revision of this id3v2 tag.
|
int |
getTagSize()
Returns the size (in bytes) of the frames and/or extended header portion
of the id3v2 tag according to the size field in the header.
|
boolean |
getUnsynchronisation()
Returns true if the unsynchronisation bit is set in this header.
|
boolean |
headerExists()
Returns true if a header exists
|
void |
setExperimental(boolean experiment)
Set the value of the experimental bit of this header.
|
void |
setExtendedHeader(boolean extend)
Set the value of the extended header bit of this header.
|
void |
setFooter(boolean foot)
Sets the value of the footer bit for this header.
|
void |
setTagSize(int size)
Sets the size of the frames and/or extended header.
|
void |
setUnsynchronisation(boolean unsynch)
Set the unsynchronisation flag for this header.
|
String |
toString()
Return a string representation of this object.
|
public ID3v2Header(RandomAccessInputStream raf) throws IOException
mp3 - the file to attempt to read data fromFileNotFoundException - if an error occursIOException - if an error occurspublic byte[] getBytes()
public boolean headerExists()
public int getHeaderSize()
public int getTagSize()
public void setTagSize(int size)
size - a value of type 'int'public int getMajorVersion()
public int getMinorVersion()
public boolean getUnsynchronisation()
public void setUnsynchronisation(boolean unsynch)
unsynch - the new value of the unsynchronisation flagpublic boolean getExtendedHeader()
public void setExtendedHeader(boolean extend)
extend - the new value of the extended header bitpublic boolean getExperimental()
public void setExperimental(boolean experiment)
experiment - the new value of the experimental bitpublic boolean getFooter()
public void setFooter(boolean foot)
foot - the new value of the footer bit for this headerCopyright © 2014. All rights reserved.