Constructors

Methods

  • Abort the download of a file.

    Parameters

    • fileId: string

      Id of the file.

    Returns void

  • Remove all the data of the file.

    Parameters

    • fileId: string

      Id of the file.

    Returns void

  • Delete a file from the pool.

    Parameters

    • fileId: string

      Id of the file.

    Returns void

  • Trigger the download of a file.

    Parameters

    • fileId: string

      Id of the file.

    • OptionalaskFilePartCallback: AskFilePartCallback

      Callback function to ask a specific part of a file.

    • OptionalparallelCalls: number

      Number of parallel calls to perform.

    Returns Promise<void>

  • Check existance of a file in the pool.

    Parameters

    • fileId: string

      Id of the file.

    Returns boolean

    true if the file exists.

  • Get the Blob of a specific complete file.

    Parameters

    • fileId: string

      Id of the file.

    Returns Blob

    The Blob of the complete file.

  • Read a specific part of a file.

    Parameters

    • fileId: string

      Id of the file.

    • offset: number

      From where to read.

    • limit: number

      Maximum lenght of data we want to read.

    Returns ArrayBuffer

    ArrayBuffer containing the requested part of the file.

  • Receive a specific part of a file.

    Parameters

    • fileId: string

      Id of the file.

    • offset: number

      From where it was read.

    • limit: number

      Maximum length of read data.

    • data: ArrayBuffer

      ArrayBuffer containing the data of defined part of the file.

    Returns void

MMNEPVFCICPMFPCPTTAAATR