|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.StreamConnector
public class StreamConnector
The Memory Stream Connector can read from or write to any Java(TM) stream, but is most often used to write into memory, where the formatted data can be retrieved later. The allocated buffer is retrieved/accessed as needed.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Constructor Summary | |
|---|---|
StreamConnector()
Class constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getDataBuffer()
Retrieves data from the buffer |
Entry |
getNextEntry()
uses the provided parser to read an entry |
java.lang.String |
getVersion()
Return version information |
void |
initialize(java.lang.Object o)
The Connector can only operate in Iterator mode, AddOnly mode, or Passive state. |
void |
putEntry(Entry entry)
Writes an entry using the provided parser |
void |
selectEntries()
Default implementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
|---|
deleteEntry, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminate, terminateServer |
| Constructor Detail |
|---|
public StreamConnector()
| Method Detail |
|---|
public void selectEntries()
throws java.lang.Exception
selectEntries in interface ConnectorInterfaceselectEntries in class Connectorjava.lang.Exception - never
public void initialize(java.lang.Object o)
throws java.lang.Exception
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 in interface ConnectorInterfaceinitialize in class Connectoro - null/Writer/Reader or Socket
java.lang.Exception - if an error occurs
public Entry getNextEntry()
throws java.lang.Exception
getNextEntry in interface ConnectorInterfacegetNextEntry in class Connectorjava.lang.Exception - if no parser provided or an error occursConnectorInterface.selectEntries()
public void putEntry(Entry entry)
throws java.lang.Exception
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - the entry to be written
java.lang.Exception - if no parser provided or an error occurs
public java.lang.String getDataBuffer()
throws java.lang.Exception
java.lang.Exception - if an I/O error occurspublic java.lang.String getVersion()
getVersion in interface VersionInfoInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||