public class ByteArraySizeTerminated extends AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
ByteArraySizeTerminated(ByteArraySizeTerminated object) |
ByteArraySizeTerminated(String identifier,
AbstractTagFrameBody frameBody) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getSize()
Return the size in byte of this datatype
|
void |
readByteArray(byte[] arr,
int offset)
This is the starting point for reading bytes from the file into the ID3 datatype
starting at offset.
|
String |
toString()
Because this is usually binary data and could be very long we just return
the number of bytes held
|
byte[] |
writeByteArray()
Write contents to a byte array
|
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public ByteArraySizeTerminated(String identifier, AbstractTagFrameBody frameBody)
public ByteArraySizeTerminated(ByteArraySizeTerminated object)
public int getSize()
getSize
in class AbstractDataType
public boolean equals(Object obj)
equals
in class AbstractDataType
public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
AbstractDataType
readByteArray
in class AbstractDataType
arr
- offset
- NullPointerException
IndexOutOfBoundsException
InvalidDataTypeException
public String toString()
public byte[] writeByteArray()
writeByteArray
in class AbstractDataType
Copyright © 2005–2020 jthink.net. All rights reserved.