|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.eways.batchext.BatchDelimitedRecordParser
public class BatchDelimitedRecordParser
This class is the implementation of the e*Way-supplied record parser for the delimited record type.
BatchRecordParser| Constructor Summary | |
|---|---|
BatchDelimitedRecordParser()
|
|
| Method Summary | |
|---|---|
void |
finish(java.io.OutputStream output,
java.io.InputStream input)
You must call this method when you are done with a transfer, to clean up resources, finish processing, and so on. |
byte[] |
get(java.io.InputStream input)
The get() method in the ETD calls this method to do the desired task. |
void |
initialize(BatchRecordConfiguration conf)
This method is called by the underlying implementation immediately after the instance of the class is created. |
byte[] |
parseDelims(java.lang.String s)
|
void |
put(java.io.OutputStream output,
byte[] data)
The put() method in the ETD calls this method to do the desired task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchDelimitedRecordParser()
| Method Detail |
|---|
public void initialize(BatchRecordConfiguration conf)
throws java.lang.Exception
BatchRecordParser
initialize in interface BatchRecordParserconf - An instance of the BatchRecordConfiguration class, which
contains configuration-specific information for
the parser.
java.lang.Exception - If there is a problem with the
properties passed in. The e*Way-supplied parsers can
throw an exception if the configuration properties
are incorrect.
public byte[] get(java.io.InputStream input)
throws java.lang.Exception
BatchRecordParser
get in interface BatchRecordParserinput - Specifies the input to get the
next record from.
java.lang.Exception - If there is an error in parsing the input.
public void put(java.io.OutputStream output,
byte[] data)
throws java.lang.Exception
BatchRecordParser
put in interface BatchRecordParseroutput - Specifies the output file or ETD (for data streaming) where a given
record goes.data - The data to be included in
the record.
java.lang.Exception - If there is a problem processing the data.
The e*Way-supplied parsers throw exceptions
from this method if there is a problem with
the data, for example, for the fixed-size
record parser if the data is not the correct
size.
public void finish(java.io.OutputStream output,
java.io.InputStream input)
throws java.lang.Exception
BatchRecordParser
finish in interface BatchRecordParseroutput - Specifies the output where the
records go.input - Specifies the input where the
records come from.
java.lang.Exception - If there is a problem finishing.
public byte[] parseDelims(java.lang.String s)
throws java.lang.Exception
java.lang.Exception
|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||