|
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.BatchSingleRecordParser
public class BatchSingleRecordParser
This class is the implementation of the e*Way-supplied record parser for the Single record type.
BatchRecordParser
Field Summary | |
---|---|
protected boolean |
recordProcessed
|
Constructor Summary | |
---|---|
BatchSingleRecordParser()
|
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. |
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 |
Field Detail |
---|
protected boolean recordProcessed
Constructor Detail |
---|
public BatchSingleRecordParser()
Method Detail |
---|
public void initialize(BatchRecordConfiguration conf) throws java.lang.Exception
BatchRecordParser
initialize
in interface BatchRecordParser
conf
- 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 BatchRecordParser
input
- 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 BatchRecordParser
output
- 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 BatchRecordParser
output
- 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.
|
Sun Adapter for Batch/FTP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |