public class ByteField extends DCField
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH |
| Constructor and Description |
|---|
ByteField() |
ByteField(FieldKey key) |
ByteField(FieldKey key,
byte val) |
ByteField(int id,
byte val)
Deprecated.
use new ByteField(FieldKey key,byte val)
|
ByteField(int id,
byte[] val)
Deprecated.
use new ByteField(FieldKey) followed by setValue(byte[]);
|
ByteField(java.lang.String id,
byte val)
Deprecated.
use new ByteField(FieldKey key,byte val)
|
ByteField(java.lang.String id,
byte[] val)
Deprecated.
use new ByteField(FieldKey) followed by setValue(byte[]);
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getByteValue()
The method returns the byte array of value
|
java.util.Date |
getDateValue()
The method returns date value
|
double |
getDoubleValue()
The method returns bouble value
|
float |
getFloatValue()
The method returns float value
|
int |
getIntValue()
The method returns integer value
|
long |
getLongValue()
The method returns long value
|
short |
getShortValue()
The method return short value
|
java.lang.String |
getStringValue()
The methods return string value
|
int |
getType() |
void |
setValue(byte b)
Sets the value of this ByteField from the given byte
|
void |
setValue(java.lang.String s)
Sets the value of this ByteField from the given String
|
clone, create, dup, equals, equalsValue, getBytes, getBytesValue, getDCField, getDCField, getDCField, getID, getKey, getLength, getStaticAttrLength, init, init, init, isEmpty, isVarLength, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromStream, readValueFromStream, setID, setID, setKey, setType, setValue, toString, writeValueToStreampublic static final int LENGTH
public ByteField()
public ByteField(FieldKey key)
public ByteField(FieldKey key, byte val)
public ByteField(int id,
byte val)
public ByteField(java.lang.String id,
byte val)
public ByteField(int id,
byte[] val)
public ByteField(java.lang.String id,
byte[] val)
public void setValue(byte b)
throws NDKException
NDKExceptionpublic void setValue(java.lang.String s)
throws NDKException
NDKExceptionpublic byte getByteValue()
throws java.lang.ClassCastException
getByteValue in class DCFieldjava.lang.ClassCastExceptionpublic java.util.Date getDateValue()
throws java.lang.ClassCastException
getDateValue in class DCFieldjava.lang.ClassCastExceptionpublic double getDoubleValue()
throws java.lang.ClassCastException
getDoubleValue in class DCFieldjava.lang.ClassCastExceptionpublic float getFloatValue()
throws java.lang.ClassCastException
getFloatValue in class DCFieldjava.lang.ClassCastExceptionpublic int getIntValue()
throws java.lang.ClassCastException
getIntValue in class DCFieldjava.lang.ClassCastExceptionpublic long getLongValue()
throws java.lang.ClassCastException
getLongValue in class DCFieldjava.lang.ClassCastExceptionpublic short getShortValue()
throws java.lang.ClassCastException
getShortValue in class DCFieldjava.lang.ClassCastExceptionpublic java.lang.String getStringValue()
throws java.lang.ClassCastException
getStringValue in class DCFieldjava.lang.ClassCastException