Object

za.co.absa.cobrix.cobol.parser.examples.generators.utils

GeneratorTools

Related Doc: package utils

Permalink

object GeneratorTools

This object contains a set of tooling methods for mainframe data generation

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

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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def encodeBcd(numStr: String, isSigned: Boolean): Array[Byte]

    Permalink

    Encodes an arbitrary number in BCD format.

    Encodes an arbitrary number in BCD format. Returns the corresponding array of bytes.

  7. def encodeBinSigned(numStr: String): Array[Byte]

    Permalink

    Encodes a number according to the rules of singed binary compressed big-endian numbers.

    Encodes a number according to the rules of singed binary compressed big-endian numbers. Returns the corresponding array of bytes.

  8. def encodeBinUnsigned(numStr: String): Array[Byte]

    Permalink

    Encodes a number according to the rules of unsigned binary compressed big-endian numbers.

    Encodes a number according to the rules of unsigned binary compressed big-endian numbers. Returns the corresponding array of bytes.

  9. def encodeDouble(numStr: String): Array[Byte]

    Permalink

    Encodes a number according to the rules of IEEE-754 double format (COMP-1).

    Encodes a number according to the rules of IEEE-754 double format (COMP-1). Returns the corresponding array of bytes.

  10. def encodeFloat(numStr: String): Array[Byte]

    Permalink

    Encodes a number according to the rules of IEEE-754 float format (COMP-1).

    Encodes a number according to the rules of IEEE-754 float format (COMP-1). Returns the corresponding array of bytes.

  11. def encodeUncompressed(numStr: String, targetLength: Int, isSigned: Boolean, signPunch: Boolean, isSignLeading: Boolean): Array[Byte]

    Permalink

    Encodes a number according to the rules of uncompressed (DISPLAY) COBOL EBCDIC format.

    Encodes a number according to the rules of uncompressed (DISPLAY) COBOL EBCDIC format. Returns the corresponding array of bytes.

  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def generateRandomByteArray(rand: Random, length: Int): Array[Byte]

    Permalink

    Generates a random array of a specified length.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def putArrayToArray(bytes: Array[Byte], str: Array[Byte], index0: Int, index1: Int): Unit

    Permalink

    Copies a smaller]array into a larger array into positions determined by indexes.

  23. def putComp3ToArrayS8(bytes: Array[Byte], number: Int, index0: Int, index1: Int): Unit

    Permalink

    Puts a 8 digit BCD number (COMP-3) a byte array into positions determined by a indexes.

  24. def putDecimalToArray(bytes: Array[Byte], intpart: Long, fractPart: Int, index0: Int, index1: Int): Unit

    Permalink

    Puts a 64 bit little-endian decimal number defined by integral and fracture parts to a byte array into positions determined by a indexes.

  25. def putDouble(fieldName: String, bytes: Array[Byte], bigNumber: String, index0: Int, isNegative: Boolean = false): Int

    Permalink

    Puts an number as an IEEE-754 double value into an array.

    Puts an number as an IEEE-754 double value into an array. The starting offset is determined by 'index0'. The resulting offset is returned.

  26. def putEbcdicStringToArray(bytes: Array[Byte], str: String, index0: Int, index1: Int): Unit

    Permalink

    Puts a string into a byte array into positions determined by a indexes.

    Puts a string into a byte array into positions determined by a indexes. No conversion from ASCII to EBCDIC is performed.

  27. def putEncodedNumStrToArray(encoder: (String) ⇒ Array[Byte], fieldName: String, bytes: Array[Byte], bigNumber: String, index0: Int, length: Int, signed: Boolean, isNegative: Boolean = false, isSignSeparate: Boolean = false, isSignLeading: Boolean = true, isSignPunching: Boolean = true, explicitDecimalPosition: Int = 1): Int

    Permalink

    Puts an arbitrary number represented as a string into a byte array according to provided encoding.

    Puts an arbitrary number represented as a string into a byte array according to provided encoding. The resulting bytes are inserted into an array according to a starting index (offset). The new offset is returned.

  28. def putFloat(fieldName: String, bytes: Array[Byte], bigNumber: String, index0: Int, isNegative: Boolean = false): Int

    Permalink

    Puts an number as an IEEE-754 float value into an array.

    Puts an number as an IEEE-754 float value into an array. The starting offset is determined by 'index0'. The resulting offset is returned.

  29. def putIntToArray(bytes: Array[Byte], number: Int, index0: Int, index1: Int): Unit

    Permalink

    Puts a little-endian short number to a byte array into positions determined by a indexes.

  30. def putIntToArray(bytes: Array[Byte], number: Int, index0: Int): Int

    Permalink

    Puts a little-endian integer to a byte array into positions determined by a starting index (offset).

    Puts a little-endian integer to a byte array into positions determined by a starting index (offset). The new offset is returned.

  31. def putNumStrToArray(fieldName: String, bytes: Array[Byte], bigNumber: String, index0: Int, length: Int, signed: Boolean, isNegative: Boolean = false, isSignSeparate: Boolean = false, isSignLeading: Boolean = false, explicitDecimalPosition: Int = 1): Int

    Permalink

    Puts an arbitrary number in EBCDIC uncompressed (DISPLAY) format into an array.

    Puts an arbitrary number in EBCDIC uncompressed (DISPLAY) format into an array. The starting offset is determined by 'index0'. The resulting offset is returned.

  32. def putShortToArray(bytes: Array[Byte], number: Short, index0: Int, index1: Int): Unit

    Permalink

    Puts a little-endian short number to a byte array into positions determined by a indexes.

  33. def putShortToArrayBigEndian(bytes: Array[Byte], number: Short, index0: Int, index1: Int): Unit

    Permalink

    Puts a big-endian short number to a byte array into positions determined by a indexes.

  34. def putStringToArray(fieldName: String, bytes: Array[Byte], str: String, index0: Int, length: Int): Int

    Permalink

    Puts an ASCII string into a byte array into positions determined by a starting index (offset).

    Puts an ASCII string into a byte array into positions determined by a starting index (offset). The new offset is returned. The passed string is automatically converted to EBCDIC common page encoding.

  35. def putStringToArray(bytes: Array[Byte], str: String, index0: Int, index1: Int): Unit

    Permalink

    Puts an ASCII string into a byte array into positions determined by indexes.

    Puts an ASCII string into a byte array into positions determined by indexes. The passed string is automatically converted to EBCDIC common page encoding.

  36. def strToBigArray(numStr: String, isSigned: Boolean): Array[Byte]

    Permalink

    Encodes an arbitrary big integer in a big-endian binary (COMP) format.

    Encodes an arbitrary big integer in a big-endian binary (COMP) format. Returns the corresponding array of bytes.

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped