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(java.lang.String identifier,
AbstractTagFrameBody frameBody)
Creates a new empty PartOfSet datatype.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
protected java.lang.String |
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.
|
java.lang.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, getSize, setSize
createStructure, getBody, getIdentifier, readByteArray, setBody, setValue
public PartOfSet(java.lang.String identifier, AbstractTagFrameBody frameBody)
identifier
- identifies the frame typeframeBody
- public PartOfSet(PartOfSet object)
object
- public boolean equals(java.lang.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 fieldjava.lang.NullPointerException
java.lang.IndexOutOfBoundsException
InvalidDataTypeException
public byte[] writeByteArray()
writeByteArray
in class AbstractDataType
protected java.lang.String getTextEncodingCharSet()
public PartOfSet.PartOfSetValue getValue()
AbstractDataType
getValue
in class AbstractDataType
public java.lang.String toString()
AbstractString
toString
in class AbstractString
Copyright © 2005-2013 java.net. All Rights Reserved.