Packages

trait DataType extends AnyRef

The DataType trait defines members that must exist on classes that provide an implementation of each possible DataTypes value, where those values represent an IPFIX Information Element Data Types as defined in RFC5102.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataType
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

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

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

  2. abstract val defaultLength: Int

    The default length of the DataType.

  3. abstract def getValue(buffer: ByteBuffer, session: Session, ie: InfoElement): Any

    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.

  4. abstract val id: DataTypes

    A reference to the DataTypes value that this class implements.

  5. abstract val maximumValue: Option[Long]

    An optional maximum value for the DataType.

  6. abstract val minimumValue: Option[Long]

    An optional minimum value for the DataType.

  7. abstract val name: String

    The name of the DataType.

  8. abstract def octetLength(obj: Any, len: Int): Int

    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.

  9. abstract def toBuffer(buffer: ByteBuffer, session: Session, len: Int, obj: Any): ByteBuffer

    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.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped