net.jradius.packet.attribute.value
Class OctetsValue

java.lang.Object
  extended by net.jradius.packet.attribute.value.AttributeValue
      extended by net.jradius.packet.attribute.value.OctetsValue
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EncryptedStringValue, StringValue, TLVValue

public class OctetsValue
extends AttributeValue

Raw Octets attribute value

Author:
David Bird
See Also:
Serialized Form

Field Summary
protected  byte[] byteValue
           
protected  int byteValueLength
           
protected  int byteValueOffset
           
 
Constructor Summary
OctetsValue()
           
OctetsValue(byte[] b)
           
 
Method Summary
 void copy(AttributeValue value)
           
 void getBytes(ByteBuffer buffer)
           
 void getBytes(ByteBuffer buffer, int off, int len)
          The values of valueOffset and valueLength are only used by some value types, for others they are will always be the same or meaningless.
 void getBytes(OutputStream out)
           
 int getLength()
           
 Serializable getValueObject()
           
 void setValue(byte[] b)
           
 void setValue(byte[] b, int off, int len)
           
 void setValueObject(Serializable o)
           
 String toDebugString()
           
 String toString()
           
 
Methods inherited from class net.jradius.packet.attribute.value.AttributeValue
getBytes, setValue, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

byteValue

protected byte[] byteValue

byteValueOffset

protected int byteValueOffset

byteValueLength

protected int byteValueLength
Constructor Detail

OctetsValue

public OctetsValue()

OctetsValue

public OctetsValue(byte[] b)
Method Detail

copy

public void copy(AttributeValue value)
Specified by:
copy in class AttributeValue

getBytes

public void getBytes(OutputStream out)
              throws IOException
Specified by:
getBytes in class AttributeValue
Throws:
IOException

getBytes

public void getBytes(ByteBuffer buffer)
Specified by:
getBytes in class AttributeValue

getBytes

public void getBytes(ByteBuffer buffer,
                     int off,
                     int len)
Description copied from class: AttributeValue
The values of valueOffset and valueLength are only used by some value types, for others they are will always be the same or meaningless.

Overrides:
getBytes in class AttributeValue

getLength

public int getLength()
Overrides:
getLength in class AttributeValue

setValue

public void setValue(byte[] b)
Specified by:
setValue in class AttributeValue

setValue

public void setValue(byte[] b,
                     int off,
                     int len)
Specified by:
setValue in class AttributeValue

toDebugString

public String toDebugString()
Overrides:
toDebugString in class AttributeValue

toString

public String toString()
Overrides:
toString in class AttributeValue

getValueObject

public Serializable getValueObject()
Overrides:
getValueObject in class AttributeValue

setValueObject

public void setValueObject(Serializable o)
Specified by:
setValueObject in class AttributeValue


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.