Class

org.cert.netsa.io.ipfix.datatype

AbstractDataType

Related Doc: package datatype

Permalink

abstract class AbstractDataType extends DataType

The AbstractDataType and its subclasses provide an implementation of each possible DataTypes value, where those values represent an IPFIX Information Element Data Types as defined in RFC5102.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractDataType
  2. DataType
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractDataType(id: DataTypes, name: String, defLen: Int, minLen: Int, maxLen: Int, minVal: Long, maxVal: Long)

    Permalink
  2. new AbstractDataType(id: DataTypes, name: String, defLen: Int)

    Permalink
  3. new AbstractDataType(id: DataTypes, name: String)

    Permalink
  4. new AbstractDataType(id: DataTypes, name: String, defaultLength: Int, minimumLength: Int, maximumLength: Int, minimumValue: Option[Long] = None, maximumValue: Option[Long] = None)

    Permalink

    id

    A reference to the DataTypes value that this class implements.

    name

    The name of the DataType.

    defaultLength

    The default length of the DataType.

    minimumLength

    The minimim length of the DataType.

    maximumLength

    The maximim length of the DataType.

    minimumValue

    An optional minimum value for the DataType.

    maximumValue

    An optional maximum value for the DataType.

Abstract Value Members

  1. abstract def checkType(obj: Any): Boolean

    Permalink

    Returns true when obj is the correct type for the DataType.

    Returns true when obj is the correct type for the DataType.

    Definition Classes
    DataType
  2. abstract def decode(b: ByteBuffer, s: Session, ie: InfoElement): Any

    Permalink

    Converts the bytes in the buffer to an object.

    Converts the bytes in the buffer to an object. This is a helper function for getValue().

    Attributes
    protected
  3. abstract def encode(b: ByteBuffer, s: Session, len: Int, obj: Any): ByteBuffer

    Permalink

    Converts the object into a stream of bytes and appends to the buffer.

    Converts the object into a stream of bytes and appends to the buffer. This is a helper function for toBuffer().

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def checkTypeNumber(obj: Any): Boolean

    Permalink
    Attributes
    protected
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def decodeNTP(ntp: Long, isMicro: Boolean): Instant

    Permalink
    Attributes
    protected
  8. final val defaultLength: Int

    Permalink

    The default length of the DataType.

    The default length of the DataType.

    Definition Classes
    AbstractDataTypeDataType
  9. final def encodeNTP(t: Instant, isMicro: Boolean): Long

    Permalink
    Attributes
    protected
  10. final def encodeNumber(b: ByteBuffer, len: Int, signed: Boolean, obj: Any): ByteBuffer

    Permalink
    Attributes
    protected
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getLength(obj: Any, len: Int): Int

    Permalink

    Computes the length of an object.

    Computes the length of an object. This is a helper function for octetLength(), and it is only called when len is VARLEN. Objects that support VARLEN values must override this method.

    Attributes
    protected
    Annotations
    @silent( "obj .* never used" )
  16. final def getValue(b: ByteBuffer, s: Session, ie: InfoElement): Any

    Permalink

    Converts the bytes in the ByteBuffer which represent the specified InfoElement to an object.

    Converts the bytes in the ByteBuffer which represent the specified InfoElement to an object. session is where buffer was collected, and it is used to resolve the contents of ListElements.

    Definition Classes
    AbstractDataTypeDataType
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final val id: DataTypes

    Permalink

    A reference to the DataTypes value that this class implements.

    A reference to the DataTypes value that this class implements.

    Definition Classes
    AbstractDataTypeDataType
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isValidLength(length: Int): Boolean

    Permalink
    Attributes
    protected
  21. final val maximumLength: Int

    Permalink

    The maximim length of the DataType.

    The maximim length of the DataType.

    Attributes
    protected
  22. final val maximumValue: Option[Long]

    Permalink

    An optional maximum value for the DataType.

    An optional maximum value for the DataType.

    Definition Classes
    AbstractDataTypeDataType
  23. final val minimumLength: Int

    Permalink

    The minimim length of the DataType.

    The minimim length of the DataType.

    Attributes
    protected
  24. final val minimumValue: Option[Long]

    Permalink

    An optional minimum value for the DataType.

    An optional minimum value for the DataType.

    Definition Classes
    AbstractDataTypeDataType
  25. final val name: String

    Permalink

    The name of the DataType.

    The name of the DataType.

    Definition Classes
    AbstractDataTypeDataType
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def octetLength(obj: Any, len: Int): Int

    Permalink

    Returns the number of bytes that toBuffer() would write to the buffer, where len is the length of the InfoElement according to the record's Template (that is, the length member of the IEFieldSpecifier).

    Returns the number of bytes that toBuffer() would write to the buffer, where len is the length of the InfoElement according to the record's Template (that is, the length member of the IEFieldSpecifier). Returns VARLEN when obj is not of the correct type for the DataType. This method is useful primarily for determining the length of variable length data types.

    Definition Classes
    AbstractDataTypeDataType
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. final def toBuffer(b: ByteBuffer, s: Session, len: Int, obj: Any): ByteBuffer

    Permalink

    Converts the object into a stream of bytes and appends the bytes to the ByteBuffer, where len is the length of the InfoElement according to the record's Template (that is, the length member of the IEFieldSpecifier).

    Converts the object into a stream of bytes and appends the bytes to the ByteBuffer, where len is the length of the InfoElement according to the record's Template (that is, the length member of the IEFieldSpecifier). When the object is a SubTemplateList or SubTemplateMultiList, session is used to find the Template given a Template ID.

    Definition Classes
    AbstractDataTypeDataType
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DataType

Inherited from AnyRef

Inherited from Any

Ungrouped