MemoryBuffer (Class)

Represents a binary content stored in memory.

A is an intermediate object for manipulating data to and from a file.

Methods

dispose

Frees the resources used by the object.

load

Loads the content of a file into the buffer.

save

Saves the content of the buffer to a file.

toXML

Returns an XML JavaScript object obtained from the content of the

MemoryBuffer

. This function is obsolete, use

toDocument()

toDocument

Returns an XML document from the text content of this buffer.

toString

Returns the content of the

MemoryBuffer

in the form of a string of characters.

fromString

Loads the contents of a character string in the buffer.

toBase64

Converts the buffer or part of the character string encoded in base 64.

appendBase64

Appends data from a character string encoded in base 64 to the end of the buffer.

removeAll

Flushes the buffer.

sha1

Computes the SHA-1 signature of the MemoryBuffer content.

sha224

Computes SHA-2 224 bit signature of the MemoryBuffer content.

sha256

Computes SHA-2 256 bit signature of the MemoryBuffer content.

sha384

Computes SHA-2 384 bit signature of the MemoryBuffer content.

sha512

Computes SHA-2 512 bit signature of the MemoryBuffer content.

fromHexString

Loads the content of a hexadecimal string in the buffer.

toHexString

Converts the buffer into a string of hexadecimal characters.

hmac

Calculates the MD5, SHA-1 or SHA-256 hash of the buffer.

Properties

size

Returns the size of the buffer in bytes.

isEmpty

Returns true if the buffer is empty.

Features

Available in:

  • Content management
  • Delivery properties
  • Delivery message
  • Typology rule
  • Import
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow