|
|||||||||
| 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.PairedTextEncodedStringNullTerminated
public class PairedTextEncodedStringNullTerminated
Represents a data type that allow multiple Strings but they should be paired as key values, i.e should be 2,4,6.. But keys are not unique so we don't store as a map, so could have same key pointing to two different values such as two ENGINEER keys
| Nested Class Summary | |
|---|---|
static class |
PairedTextEncodedStringNullTerminated.ValuePairs
This holds the values held by this PairedTextEncodedDataType, always held as pairs of values |
| Field Summary |
|---|
| Fields inherited from class org.jaudiotagger.tag.datatype.AbstractDataType |
|---|
frameBody, identifier, logger, size, TYPE_ELEMENT, value |
| Constructor Summary | |
|---|---|
PairedTextEncodedStringNullTerminated(PairedTextEncodedStringNullTerminated object)
|
|
PairedTextEncodedStringNullTerminated(java.lang.String identifier,
AbstractTagFrameBody frameBody)
|
|
PairedTextEncodedStringNullTerminated(TextEncodedStringSizeTerminated object)
|
|
| Method Summary | |
|---|---|
boolean |
canBeEncoded()
Check the value can be encoded with the specified encoding |
boolean |
equals(java.lang.Object obj)
|
int |
getSize()
Returns the size in bytes of this dataType when written to file |
PairedTextEncodedStringNullTerminated.ValuePairs |
getValue()
Get value held by this Object |
void |
readByteArray(byte[] arr,
int offset)
Read Null Terminated Strings from the array starting at offset, continue until unable to find any null terminated Strings or until reached the end of the array. |
byte[] |
writeByteArray()
For every String write to byteBuffer |
| 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PairedTextEncodedStringNullTerminated(java.lang.String identifier,
AbstractTagFrameBody frameBody)
public PairedTextEncodedStringNullTerminated(TextEncodedStringSizeTerminated object)
public PairedTextEncodedStringNullTerminated(PairedTextEncodedStringNullTerminated object)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class AbstractDataTypepublic int getSize()
getSize in class AbstractDataTypepublic boolean canBeEncoded()
public void readByteArray(byte[] arr,
int offset)
throws InvalidDataTypeException
readByteArray in class AbstractDataTypearr - to read the Strings fromoffset - in the array to start reading from
InvalidDataTypeException - if unable to find any null terminated Stringspublic byte[] writeByteArray()
writeByteArray in class AbstractDataTypepublic PairedTextEncodedStringNullTerminated.ValuePairs getValue()
AbstractDataType
getValue in class AbstractDataType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||