object BinaryUtils
Utilites for decoding Cobol binary data files *
- Alphabetic
- By Inheritance
- BinaryUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val ascii2ebcdic: Array[Byte]
-
def
asciiToEbcdic(char: Char): Byte
Convert an ASCII character to EBCDIC
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
decodeBinaryNumber(bytes: Array[Byte], bigEndian: Boolean, signed: Boolean, scale: Int = 0, scaleFactor: Int = 0): String
A generic decoder for 2s compliment binary numbers aka COMP
A generic decoder for 2s compliment binary numbers aka COMP
- bytes
A byte array that represents the binary data
- returns
A string representation of the binary data
-
def
decodeDouble(bytes: Array[Byte]): Double
A decoder for IEEE-754 big endian doubles
A decoder for IEEE-754 big endian doubles
- bytes
A byte array that represents the binary data
- returns
A boxed double
-
def
decodeFloat(bytes: Array[Byte]): Float
A decoder for IEEE-754 big endian floats
A decoder for IEEE-754 big endian floats
- bytes
A byte array that represents the binary data
- returns
A boxed float
-
def
decodeString(enc: Encoding, bytes: Array[Byte], length: Int): String
A decoder for any string fields (alphabetical or any char)
A decoder for any string fields (alphabetical or any char)
- bytes
A byte array that represents the binary data
- returns
A string representation of the binary data
- lazy val doubleB: Codec[Double]
- lazy val doubleL: Codec[Double]
-
lazy val
ebcdic2ascii: Array[Char]
This is the EBCDIC to ASCII conversion table.
This is the EBCDIC to ASCII conversion table. This is an "invariant" subset of EBCDIC code pages. For full EBCDIC code pages support please use za.co.absa.cobrix.cobol.parser.encoding.codepage.CodePage implementations.
-
def
ebcdicToAscii(byte: Byte): Char
Convert an EBCDIC character to ASCII
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- lazy val floatB: Codec[Float]
- lazy val floatL: Codec[Float]
-
def
getBitCount(codec: Codec[_ <: AnyVal], comp: Option[Int], precision: Int): Int
Get the bit count of a cobol data type
Get the bit count of a cobol data type
- codec
EBCDIC / ASCII
- comp
A type of compact stirage
- precision
The precision (the number of digits) of the type
- def getBytesCount(compression: Option[Usage], precision: Int, isSigned: Boolean, isExplicitDecimalPt: Boolean, isSignSeparate: Boolean): Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()