public class APEFlags
extends java.lang.Object
This class provides methods for reading the APE flags which are found in an APE header
, APE footer
, and in APE item
.
The APE flags, while present in APEv1, are all zero's and are not used.
In APEv2, the flag bits were assigned meanings.
Modifier and Type | Class and Description |
---|---|
static class |
APEFlags.Type
valid APE value types
|
Constructor and Description |
---|
APEFlags(byte[] bytes,
int index)
constructor.
|
Modifier and Type | Method and Description |
---|---|
APEFlags.Type |
getType()
gets the type of data.
|
boolean |
isFooter()
gets whether this is the APE tag footer.
|
boolean |
isHeader()
gets whether this is the APE tag header.
|
boolean |
isReadOnly()
gets whether this tag or item is read only.
|
boolean |
isTagContainsFooter()
gets whether the APE tag contains a footer.
|
boolean |
isTagContainsHeader()
gets whether the APE tag contains a header.
|
java.lang.String |
toString()
gets a string representation of the APE flags.
|
public APEFlags(byte[] bytes, int index)
bytes
- bytes from an APE tag.index
- offset into the byte stream where the flag bytes are located.public boolean isTagContainsHeader()
public boolean isTagContainsFooter()
public boolean isHeader()
public boolean isFooter()
public APEFlags.Type getType()
public boolean isReadOnly()
public java.lang.String toString()
toString
in class java.lang.Object