public class IPField extends DCField
| Constructor and Description |
|---|
IPField() |
IPField(FieldKey key) |
IPField(FieldKey key,
byte[] val) |
IPField(int id,
byte[] val)
Deprecated.
Use IPField(FieldKey key, byte [] val)
|
IPField(java.lang.String id,
byte[] val)
Deprecated.
Use IPField(FieldKey key, byte [] val)
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getByteValue() |
java.util.Date |
getDateValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
short |
getShortValue() |
java.lang.String |
getStringValue() |
int |
getType() |
void |
setValue(java.lang.String s)
Sets the value of this IPField from the given String, where the
expected format is four unsigned decimal numbers, each representing
eight bits, separated by periods.
|
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 IPField()
public IPField(FieldKey key)
public IPField(FieldKey key, byte[] val)
public IPField(int id,
byte[] val)
id - val - public IPField(java.lang.String id,
byte[] val)
id - val - public void setValue(java.lang.String s)
throws NDKException
NDKExceptionpublic int getType()
public 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