JSONDataStreamer

Overview

JsonDataStreamer implementation compatible with other platforms. Shouldn't be created directly by user, just provide streamer class when creating data adapter.

var channel = new RemObjects.SDK.HTTPClientChannel("http://" + window.location.host + "/JSON");
var message = new RemObjects.SDK.JSONMessage();
var service = new RemObjects.SDK.RemoteService(channel, message, "DASampleService");
var loginService = new RemObjects.SDK.RemoteService(channel, message, "LoginService");
var rda = new RemObjects.DataAbstract.RemoteDataAdapter(service, loginService, RemObjects.DataAbstract.JSONDataStreamer);

Location

DataAbstract.js * Ancestry: JSONDataStreamer

Instance Methods


constructor JSONDataStreamer

Creates streamer instance.

function constructor JSONDataStreamer()

finalizeWrite

Called after writing the data to the stream.

function finalizeWrite()

getStream

Returns the data stream that is to be passed to the server.

function getStream()

initializeRead

Called before reading the data from the response stream.

function initializeRead()

initializeWrite

Called before writing the data to the request stream.

function initializeWrite()

readDataset

Reads DataTable content from the stream.

function readDataset(aDataset)

Parameters:


readDelta

Reads Delta content from the stream.

function readDelta()

setStream

Assigns data stream to the internal field.

function setStream(aStream)

Parameters:

  • aStream: string

writeDelta

Writes Delta content from the stream.

function writeDelta(aDelta)

Parameters:


See Also