Package com.nt.udc.osar
Class OSARecAttr
java.lang.Object
com.nt.udc.osar.OSARecAttr
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ByteAttr
,BytesAttr
,DoubleAttr
,FloatAttr
,IntAttr
,IPAttr
,IPV6Attr
,ListAttr
,LongAttr
,MacAttr
,MillisAttr
,ObjectAttr
,SecondsAttr
,ShortAttr
,StringAttr
,UINT128Attr
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected int
static final int
static final int
static final int
protected byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(OSARecAttr oa) byte[]
getBytes()
abstract byte
abstract Date
abstract double
abstract float
abstract int
int
int
abstract long
abstract short
static int
getStaticAttrLength
(int type) abstract String
int
getTag()
abstract Timestamp
abstract Time
abstract int
getType()
byte[]
protected void
init
(int stag, byte[] values) static boolean
isVarLength
(int type) static OSARecAttr
makeAttrfromBytes
(byte[] attrBytes, int offset) static OSARecAttr
makeAttrfromBytes
(int id, int type, byte[] valueBytes) static OSARecAttr
void
setTag
(int newTag) void
setValue
(byte[] valueBytes) boolean
toStream
(OutputStream ostream) toString()
-
Field Details
-
tag
protected int tag -
value
protected byte[] value -
STRING
public static final int STRING- See Also:
-
INTEGER
public static final int INTEGER- See Also:
-
LONG
public static final int LONG- See Also:
-
TIMEINSECONDS
public static final int TIMEINSECONDS- See Also:
-
IP
public static final int IP- See Also:
-
TIMEINMILLIS
public static final int TIMEINMILLIS- See Also:
-
MAC
public static final int MAC- See Also:
-
UINT128
public static final int UINT128- See Also:
-
BYTE
public static final int BYTE- See Also:
-
SHORT
public static final int SHORT- See Also:
-
IPV6
public static final int IPV6- See Also:
-
FLOAT
public static final int FLOAT- See Also:
-
DOUBLE
public static final int DOUBLE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
OBJECT
public static final int OBJECT- See Also:
-
LIST
public static final int LIST- See Also:
-
-
Constructor Details
-
OSARecAttr
public OSARecAttr()
-
-
Method Details
-
getType
public abstract int getType() -
getByteValue
public abstract byte getByteValue() -
getDateValue
-
getDoubleValue
public abstract double getDoubleValue() -
getFloatValue
public abstract float getFloatValue() -
getIntValue
public abstract int getIntValue() -
getLongValue
public abstract long getLongValue() -
getShortValue
public abstract short getShortValue() -
getStringValue
-
getTimeValue
-
getTimestampValue
-
makeAttrfromStream
-
makeAttrfromBytes
-
makeAttrfromBytes
-
isVarLength
public static boolean isVarLength(int type) -
getStaticAttrLength
public static int getStaticAttrLength(int type) -
init
protected void init(int stag, byte[] values) -
toStream
- Throws:
IOException
-
getBytes
public byte[] getBytes() -
toString
-
getTag
public int getTag() -
setTag
public void setTag(int newTag) -
getLength
public int getLength() -
getLengthInWord
public int getLengthInWord() -
getValueBytes
public byte[] getValueBytes() -
setValue
public void setValue(byte[] valueBytes) -
equals
-