net.jradius.packet.attribute.value
Class AttributeValue

java.lang.Object
  extended by 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

Constructor Summary
AttributeValue()
           
 
Method Summary
abstract  void copy(AttributeValue value)
           
 byte[] getBytes()
           
abstract  void getBytes(ByteBuffer buffer)
           
 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.
abstract  void getBytes(OutputStream io)
           
 int getLength()
           
 Serializable getValueObject()
           
abstract  void setValue(byte[] b)
           
abstract  void setValue(byte[] b, int off, int len)
           
 void setValue(String s)
           
abstract  void setValueObject(Serializable o)
           
 String toDebugString()
           
 String toString()
           
 String toXMLString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValue

public AttributeValue()
Method Detail

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.