public class BooleanByte extends AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
BooleanByte(BooleanByte copy) |
BooleanByte(String identifier,
AbstractTagFrameBody frameBody,
int bitPosition)
Creates a new ObjectBooleanByte datatype.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getBitPosition() |
int |
getSize()
This defines the size in bytes of the datatype being
held when read/written to file.
|
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() |
byte[] |
writeByteArray()
Starting point write ID3 Datatype back to array of bytes.
|
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public BooleanByte(String identifier, AbstractTagFrameBody frameBody, int bitPosition)
identifier
- frameBody
- bitPosition
- IndexOutOfBoundsException
public BooleanByte(BooleanByte copy)
public int getBitPosition()
public int getSize()
AbstractDataType
getSize
in class AbstractDataType
public boolean equals(Object obj)
equals
in class AbstractDataType
obj
- public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
AbstractDataType
readByteArray
in class AbstractDataType
arr
- offset
- NullPointerException
IndexOutOfBoundsException
InvalidDataTypeException
public byte[] writeByteArray()
AbstractDataType
writeByteArray
in class AbstractDataType
Copyright © 2005–2020 jthink.net. All rights reserved.