public class BooleanByte extends AbstractDataType
Modifier and Type | Field and Description |
---|---|
(package private) int |
bitPosition |
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
BooleanByte(BooleanByte copy) |
BooleanByte(java.lang.String identifier,
AbstractTagFrameBody frameBody,
int bitPosition)
Creates a new ObjectBooleanByte datatype.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.String |
toString() |
byte[] |
writeByteArray()
Starting point write ID3 Datatype back to array of bytes.
|
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public BooleanByte(java.lang.String identifier, AbstractTagFrameBody frameBody, int bitPosition)
identifier
- frameBody
- bitPosition
- java.lang.IndexOutOfBoundsException
public BooleanByte(BooleanByte copy)
public int getBitPosition()
public int getSize()
AbstractDataType
getSize
in class AbstractDataType
public boolean equals(java.lang.Object obj)
equals
in class AbstractDataType
obj
- public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
AbstractDataType
readByteArray
in class AbstractDataType
arr
- offset
- java.lang.NullPointerException
java.lang.IndexOutOfBoundsException
InvalidDataTypeException
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] writeByteArray()
AbstractDataType
writeByteArray
in class AbstractDataType
Copyright © 2005-2013 java.net. All Rights Reserved.