|
|||||||||||
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 | |
---|---|
String |
getDataBuffer()
Retrieves data from the buffer |
Entry |
getNextEntry()
uses the provided parser to read an entry |
String |
getVersion()
Return version information |
void |
initialize(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 Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
Exception
- neverpublic void initialize(Object o) throws 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 ConnectorInterface
initialize
in class Connector
o
- null/Writer/Reader or Socket
Exception
- if an error occurspublic Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- if no parser provided or an error occursConnectorInterface.selectEntries()
public void putEntry(Entry entry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- the entry to be written
Exception
- if no parser provided or an error occurspublic String getDataBuffer() throws Exception
Exception
- if an I/O error occurspublic String getVersion()
getVersion
in interface VersionInfoInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |