com.waveset.util
Class LDIFParser
java.lang.Object
com.waveset.util.LDIFParser
- All Implemented Interfaces:
- FlatFileIterator
- public class LDIFParser
- extends java.lang.Object
- implements FlatFileIterator
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. |
void |
readRecord()
|
protected java.util.Map |
transformLDIFRecord(netscape.ldap.util.LDIFRecord ldifRecord)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
LDIF_DN
public static final java.lang.String LDIF_DN
- See Also:
- Constant Field Values
LDIF_CONTENT_TYPE
public static final java.lang.String LDIF_CONTENT_TYPE
- See Also:
- Constant Field Values
LDIFParser
public LDIFParser(java.lang.String filename,
Resource resource)
throws java.io.IOException
close
public void close()
- Description copied from interface:
FlatFileIterator
- Intended for clean up of any open streams or readers.
- Specified by:
close
in interface FlatFileIterator
hasNext
public boolean hasNext()
- Description copied from interface:
FlatFileIterator
- Indicates whether more records exist to read from the flat file.
- Specified by:
hasNext
in interface FlatFileIterator
- Returns:
- true if another record is available for processing from the
flat file, false if not.
nextRecord
public java.util.Map nextRecord()
throws java.io.IOException
- Description copied from interface:
FlatFileIterator
- Converts a record in the flat file to a map of attribute name/value
pairs.
- Specified by:
nextRecord
in interface FlatFileIterator
- Returns:
- map of attribute name/value pairs for a record in the flat
file.
- Throws:
java.io.IOException
readRecord
public void readRecord()
throws java.io.IOException
- Throws:
java.io.IOException
transformLDIFRecord
protected java.util.Map transformLDIFRecord(netscape.ldap.util.LDIFRecord ldifRecord)
throws java.io.IOException
- Throws:
java.io.IOException