|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jaudiotagger.tag.datatype.AbstractDataType
org.jaudiotagger.tag.datatype.AbstractString
org.jaudiotagger.tag.datatype.PartOfSet
public class PartOfSet
Represents the form 01/10 whereby the second part is optional. This is used by frame such as TRCK and TPOS Some applications like to prepend the count with a zero to aid sorting, (i.e 02 comes before 10)
| Nested Class Summary | |
|---|---|
static class |
PartOfSet.PartOfSetValue
Holds data |
| Field Summary |
|---|
| Fields inherited from class org.jaudiotagger.tag.datatype.AbstractDataType |
|---|
frameBody, identifier, logger, size, TYPE_ELEMENT, value |
| Constructor Summary | |
|---|---|
PartOfSet(PartOfSet object)
Copy constructor |
|
PartOfSet(java.lang.String identifier,
AbstractTagFrameBody frameBody)
Creates a new empty PartOfSet datatype. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
protected java.lang.String |
getTextEncodingCharSet()
Get the text encoding being used. |
PartOfSet.PartOfSetValue |
getValue()
Get value held by this Object |
void |
readByteArray(byte[] arr,
int offset)
Read a 'n' bytes from buffer into a String where n is the framesize - offset so thefore cannot use this if there are other objects after it because it has no delimiter. |
java.lang.String |
toString()
Return String representation of data type |
byte[] |
writeByteArray()
Write String into byte array It will remove a trailing null terminator if exists if the option RemoveTrailingTerminatorOnWrite has been set. |
| Methods inherited from class org.jaudiotagger.tag.datatype.AbstractString |
|---|
canBeEncoded, getSize, setSize |
| Methods inherited from class org.jaudiotagger.tag.datatype.AbstractDataType |
|---|
createStructure, getBody, getIdentifier, readByteArray, setBody, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartOfSet(java.lang.String identifier,
AbstractTagFrameBody frameBody)
identifier - identifies the frame typeframeBody - public PartOfSet(PartOfSet object)
object - | Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class AbstractDataType
public void readByteArray(byte[] arr,
int offset)
throws InvalidDataTypeException
readByteArray in class AbstractDataTypearr - this is the buffer for the frameoffset - this is where to start reading in the buffer for this field
java.lang.NullPointerException
java.lang.IndexOutOfBoundsException
InvalidDataTypeExceptionpublic byte[] writeByteArray()
writeByteArray in class AbstractDataTypeprotected java.lang.String getTextEncodingCharSet()
public PartOfSet.PartOfSetValue getValue()
AbstractDataType
getValue in class AbstractDataTypepublic java.lang.String toString()
AbstractString
toString in class AbstractString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||