Options
Menu

Class ParserUtils

Hierarchy

  • ParserUtils

Index

Methods

Static arrayBufferToAudio

  • arrayBufferToAudio(data: ArrayBuffer, fileType: string): HTMLAudioElement
  • Parameters

    • data: ArrayBuffer
    • fileType: string

    Returns HTMLAudioElement

Static arrayBufferToBase64

  • arrayBufferToBase64(data: ArrayBuffer, mimeType: string): string
  • Parameters

    • data: ArrayBuffer
    • mimeType: string

    Returns string

Static arrayBufferToImage

  • arrayBufferToImage(data: ArrayBuffer): HTMLImageElement
  • Converts an ArrayBuffer to a base64 string

    Parameters

    • data: ArrayBuffer

    Returns HTMLImageElement

    HTMLImageElement

Static blobToAudio

  • blobToAudio(data: Blob): HTMLAudioElement
  • Converts an Blob to audio - returns an HTMLAudioElement

    Parameters

    • data: Blob

    Returns HTMLAudioElement

    HTMLAudioElement

Static blobToImage

  • blobToImage(data: Blob): HTMLImageElement
  • Converts an Blob to an Image - returns an HTMLImageElement

    Parameters

    • data: Blob

    Returns HTMLImageElement

    HTMLImageElement

Static byteArrayToAudio

  • byteArrayToAudio(data: ByteArray, filetype: string): HTMLAudioElement
  • Parameters

    Returns HTMLAudioElement

Static byteArrayToImage

  • byteArrayToImage(data: ByteArray): HTMLImageElement
  • Converts an ByteArray to an Image - returns an HTMLImageElement

    Parameters

    Returns HTMLImageElement

    HTMLImageElement

Static toByteArray

  • Returns a object as ByteArray, if possible.

    Parameters

    • data: any

      The object to return as ByteArray

    Returns ByteArray

    The ByteArray or null

Static toString

  • toString(data: any, length?: number): string
  • Returns a object as String, if possible.

    Parameters

    • data: any

      The object to return as String

    • Default value length: number = 0

      The length of the returned String

    Returns string

    The String or null

Generated using TypeDoc