|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is provided for use with the Flat File ActiveSync Adapter. The
constructor of an implementation of this interface should expect to receive the
String
file path and initialize an appropriate handle to the flat file
to verify the file exists and is accessible. The FlatFileActiveSyncAdapter will
continue to fetch the nextRecord
while hasNext
returns
true. Implementations can expect close
to be called once
hasNext
returns false and should close any open streams or readers.
Copyright (c) 2004 Sun Microsystems
Method Summary | |
void |
close()
Intended for clean up of any open streams or readers. |
boolean |
hasNext()
Indicates whether more records exist to read from the flat file. |
java.util.Map |
nextRecord()
Converts a record in the flat file to a map of attribute name/value pairs. |
Method Detail |
public boolean hasNext()
public java.util.Map nextRecord() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |