public abstract class OSARecAttr
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
BYTE |
static int |
BYTES |
static int |
DOUBLE |
static int |
FLOAT |
static int |
INTEGER |
static int |
IP |
static int |
IPV6 |
static int |
LIST |
static int |
LONG |
static int |
MAC |
static int |
OBJECT |
static int |
SHORT |
static int |
STRING |
protected int |
tag |
static int |
TIMEINMILLIS |
static int |
TIMEINSECONDS |
static int |
UINT128 |
protected byte[] |
value |
Constructor and Description |
---|
OSARecAttr() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(OSARecAttr oa) |
byte[] |
getBytes() |
abstract byte |
getByteValue() |
abstract java.sql.Date |
getDateValue() |
abstract double |
getDoubleValue() |
abstract float |
getFloatValue() |
abstract int |
getIntValue() |
int |
getLength() |
int |
getLengthInWord() |
abstract long |
getLongValue() |
abstract short |
getShortValue() |
static int |
getStaticAttrLength(int type) |
abstract java.lang.String |
getStringValue() |
int |
getTag() |
abstract java.sql.Timestamp |
getTimestampValue() |
abstract java.sql.Time |
getTimeValue() |
abstract int |
getType() |
byte[] |
getValueBytes() |
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 |
makeAttrfromStream(java.io.DataInputStream dis) |
void |
setTag(int newTag) |
void |
setValue(byte[] valueBytes) |
boolean |
toStream(java.io.OutputStream ostream) |
java.lang.String |
toString() |
protected int tag
protected byte[] value
public static final int STRING
public static final int INTEGER
public static final int LONG
public static final int TIMEINSECONDS
public static final int IP
public static final int TIMEINMILLIS
public static final int MAC
public static final int UINT128
public static final int BYTE
public static final int SHORT
public static final int IPV6
public static final int FLOAT
public static final int DOUBLE
public static final int BYTES
public static final int OBJECT
public static final int LIST
public abstract int getType()
public abstract byte getByteValue()
public abstract java.sql.Date getDateValue()
public abstract double getDoubleValue()
public abstract float getFloatValue()
public abstract int getIntValue()
public abstract long getLongValue()
public abstract short getShortValue()
public abstract java.lang.String getStringValue()
public abstract java.sql.Time getTimeValue()
public abstract java.sql.Timestamp getTimestampValue()
public static OSARecAttr makeAttrfromStream(java.io.DataInputStream dis)
public static OSARecAttr makeAttrfromBytes(byte[] attrBytes, int offset)
public static OSARecAttr makeAttrfromBytes(int id, int type, byte[] valueBytes)
public static boolean isVarLength(int type)
public static int getStaticAttrLength(int type)
protected void init(int stag, byte[] values)
public boolean toStream(java.io.OutputStream ostream) throws java.io.IOException
java.io.IOException
public byte[] getBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public int getTag()
public void setTag(int newTag)
public int getLength()
public int getLengthInWord()
public byte[] getValueBytes()
public void setValue(byte[] valueBytes)
public boolean equals(OSARecAttr oa)