public interface AdapterInterface
Java adapter interface
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the adapter
|
java.io.ByteArrayOutputStream |
getErrorStream()
Get adapter's error stream
|
java.io.ByteArrayInputStream |
getInputStream()
Get adapter's input stream
|
java.io.ByteArrayOutputStream |
getLogStream()
Get adapter's log stream
|
java.io.ByteArrayOutputStream |
getOutputStream()
Get adapter's output stream
|
char |
getStatus()
Set processing status
|
void |
init(java.lang.String name,
Grant grant,
java.io.ByteArrayInputStream inStream,
java.io.ByteArrayOutputStream outStream,
java.io.ByteArrayOutputStream errStream,
java.io.ByteArrayOutputStream logStream,
java.util.Hashtable<java.lang.String,java.lang.Object> params)
Adapter initialization
|
void |
postProcess()
Hook postProcess call after processing lines
by default it sends the simplicite XML footer to output
|
java.lang.String |
preProcess()
Hook preProcess call before processing lines,
by default it sends the simplicite XML header to output
|
void |
process()
Input/output/error/logging streams processing
|
void |
setStatus(char status)
Get processing status
|
void init(java.lang.String name, Grant grant, java.io.ByteArrayInputStream inStream, java.io.ByteArrayOutputStream outStream, java.io.ByteArrayOutputStream errStream, java.io.ByteArrayOutputStream logStream, java.util.Hashtable<java.lang.String,java.lang.Object> params)
Adapter initialization
name
- Adapter namegrant
- User rightsinStream
- Input streamoutStream
- Output streamerrStream
- Error stream for rejected rows (can be null)logStream
- Stream to log info, errors... (can be null)params
- Adapter parametersjava.lang.String preProcess()
Hook preProcess call before processing lines, by default it sends the simplicite XML header to output
void process() throws java.lang.InterruptedException
Input/output/error/logging streams processing
java.lang.InterruptedException
void postProcess()
Hook postProcess call after processing lines by default it sends the simplicite XML footer to output
void close()
Close the adapter
java.io.ByteArrayInputStream getInputStream()
Get adapter's input stream
java.io.ByteArrayOutputStream getOutputStream()
Get adapter's output stream
java.io.ByteArrayOutputStream getErrorStream()
Get adapter's error stream
java.io.ByteArrayOutputStream getLogStream()
Get adapter's log stream
char getStatus()
Set processing status
void setStatus(char status)
Get processing status
Copyright (c)2006-2014 Simplicite Software. All Rights Reserved.