public class PartOfSet extends AbstractString
Modifier and Type | Class and Description |
---|---|
static class |
PartOfSet.PartOfSetValue
Holds data
|
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
PartOfSet(PartOfSet object)
Copy constructor
|
PartOfSet(String identifier,
AbstractTagFrameBody frameBody)
Creates a new empty PartOfSet datatype.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected Charset |
getTextEncodingCharSet()
Get the text encoding being used.
|
PartOfSet.PartOfSetValue |
getValue()
Get value held by this Object
|
void |
readByteArray(byte[] arr,
int offset)
Read a 'n' bytes from buffer into a String where n is the frameSize - offset
so therefore cannot use this if there are other objects after it because it has no
delimiter.
|
String |
toString()
Return String representation of data type
|
byte[] |
writeByteArray()
Write String into byte array
It will remove a trailing null terminator if exists if the option
RemoveTrailingTerminatorOnWrite has been set.
|
canBeEncoded, getCorrectDecoder, getSize, setSize
createStructure, getBody, getIdentifier, readByteArray, setBody, setValue
public PartOfSet(String identifier, AbstractTagFrameBody frameBody)
identifier
- identifies the frame typeframeBody
- public PartOfSet(PartOfSet object)
object
- public boolean equals(Object obj)
equals
in class AbstractDataType
public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
readByteArray
in class AbstractDataType
arr
- this is the buffer for the frameoffset
- this is where to start reading in the buffer for this fieldNullPointerException
IndexOutOfBoundsException
InvalidDataTypeException
public byte[] writeByteArray()
writeByteArray
in class AbstractDataType
protected Charset getTextEncodingCharSet()
getTextEncodingCharSet
in class AbstractString
public PartOfSet.PartOfSetValue getValue()
AbstractDataType
getValue
in class AbstractDataType
public String toString()
AbstractString
toString
in class AbstractString
Copyright © 2005–2020 jthink.net. All rights reserved.