net.jradius.packet.attribute.value
Class AttributeValue
java.lang.Object
net.jradius.packet.attribute.value.AttributeValue
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- IntegerValue, IPAddrValue, OctetsValue
public abstract class AttributeValue
- extends Object
- implements Serializable
Base abstract class of all Attribute Value classes.
- Author:
- David Bird
- See Also:
- Serialized Form
AttributeValue
public AttributeValue()
getBytes
public abstract void getBytes(OutputStream io)
throws IOException
- Throws:
IOException
getBytes
public abstract void getBytes(ByteBuffer buffer)
getBytes
public void getBytes(ByteBuffer buffer,
int valueOffset,
int valueLength)
- The values of valueOffset and valueLength are only used by some value types, for others
they are will always be the same or meaningless.
- Parameters:
buffer
- valueOffset
- valueLength
-
getBytes
public byte[] getBytes()
getLength
public int getLength()
getValueObject
public Serializable getValueObject()
setValue
public abstract void setValue(byte[] b)
setValue
public abstract void setValue(byte[] b,
int off,
int len)
setValueObject
public abstract void setValueObject(Serializable o)
copy
public abstract void copy(AttributeValue value)
setValue
public void setValue(String s)
toString
public String toString()
- Overrides:
toString
in class Object
toDebugString
public String toDebugString()
toXMLString
public String toXMLString()
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.