Neolane - JavaScript API - v6.1.0

Unknown
MemoryBuffer

Represents a binary content stored in memory.

A MemoryBuffer 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 .
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.
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

Table of contents

previous page start next page