org.jaudiotagger.tag.datatype
Class PairedTextEncodedStringNullTerminated
java.lang.Object
org.jaudiotagger.tag.datatype.AbstractDataType
org.jaudiotagger.tag.datatype.MultipleTextEncodedStringNullTerminated
org.jaudiotagger.tag.datatype.PairedTextEncodedStringNullTerminated
public class PairedTextEncodedStringNullTerminated
- extends MultipleTextEncodedStringNullTerminated
Represents a datatype that allow multiple Strings but they should be paired, i.e should be 2,4,6.. Strings
TODO Pair restriction not currently implemented
Method Summary |
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. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PairedTextEncodedStringNullTerminated
public PairedTextEncodedStringNullTerminated(java.lang.String identifier,
AbstractTagFrameBody frameBody)
PairedTextEncodedStringNullTerminated
public PairedTextEncodedStringNullTerminated(TextEncodedStringSizeTerminated object)
readByteArray
public void readByteArray(byte[] arr,
int offset)
throws InvalidDataTypeException
- 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. The offset should be set to byte after the last null terminated
String found.
- Overrides:
readByteArray
in class MultipleTextEncodedStringNullTerminated
- Parameters:
arr
- to read the Strings fromoffset
- in the array to start reading from
- Throws:
InvalidDataTypeException
- if unable to find any null terminated Strings or if find odd number of Strings