Metamerge logo
Search

Advanced Search
*
*
*
* HOME DOCUMENTS & RESOURCES DOWNLOADS EARLY TECH ACCESS SUPPORT FAQ KNOWN ISSUES OLD VERSIONS
*

 

 

Memory Stream Connector

The Memory Stream Connector can read from or write to any stream, but is most often used to write into memory, where the formatted data can be retrieved later. The Connector can only operate in Iterator, AddOnly or Passive Mode. The behavior of the Connector depends on the way it has been initialized.

  • initialize(null) - This is the default behavior. The connector writes into memory, and the formatted data can be retrieved with the method getDataBuffer(), only available in Memory Stream Connectors. Assuming the connector is named MM, this code could be used anywhere:
    var str = MM.connector.getDataBuffer();
    // use str for something.
    // To clear the data buffer and ready the connector for more output, re-initialize
    MM.connector.initialize(null); 
    
  • initialize(Reader r) - Causes the Connector to read from r. This could be used if you want to read from a stream.
  • initialize(Writer w) - Causes the Connector to write to w.
  • initialize(Socket s) - The Connector can both read from and write to a Socket.

Configuration

Parameter

Description

connectorType com.architech.connector.rscStreamConnector
parser The name of a Parser to format the output (or parse the input)

 

 

 

*
  Metamerge Integrator version 4.6 ©Copyright Metamerge AS 2000-2002 Last edited 2002-06-10 contact us