public class APEFooter
extends java.lang.Object
![]() |
![]() |
This class provides methods for reading the APE footer in an APE tag. The APE tag footer is found in both
APEv1 and
APEv2 tags.
It is 32 bytes long.
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
size (in bytes) of an APE header/footer
|
| Constructor and Description |
|---|
APEFooter(byte[] bytes)
constructor.
|
APEFooter(byte[] bytes,
java.lang.String type)
constructor.
|
| Modifier and Type | Method and Description |
|---|---|
APEFlags |
getFlags()
gets the flags associated with the APE tag.
|
int |
getNumItems()
gets the number of items in the APE tag.
|
int |
getSize()
gets the size of the APE footer.
|
int |
getTagSize()
gets the size of the APE tag, including the footer, but not the header.
|
int |
getVersion()
gets the version of the APE tag.
|
java.lang.String |
toString()
gets a string representation of the APE footer.
|
protected java.lang.String |
toString(java.lang.String type)
gets a string representation of the APE footer/header.
|
public static final int SIZE
public APEFooter(byte[] bytes)
throws ParseException
bytes - bytes from an APE tag.ParseException - if the bytes do not contain a valid APE footer.public APEFooter(byte[] bytes,
java.lang.String type)
throws ParseException
bytes - bytes from an APE tag.type - whether this is an APE header or a footer.ParseException - if the bytes do not contain a valid APE footer.public int getSize()
public int getVersion()
public int getTagSize()
public int getNumItems()
public APEFlags getFlags()
public java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String toString(java.lang.String type)
type - whether this is an APE header or footer.