|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ldap.util.LDIFReader
LDAP Data Interchange Format (LDIF) is a file format used to represent the Directory entries. The data from the directory can be exported in this format and could be imported into another directory server. LDIF Data can describe a set of changes that needs to be applied to data in a directory. This format is described in the Internet draft The LDAP Data Interchange Format (LDIF) - RFC-2849.
This class provides a set of methods to read and manipulate an LDIF file.
Constructor Summary | |
LDIFReader()
Default Constructor, Reads the data from standard input. |
|
LDIFReader(java.io.File fileObj)
Constructs an Input stream reader to read the LDIF data from the file object specified. |
|
LDIFReader(java.io.InputStream ds)
Constructs an Input stream reader to read the LDIF data from the specified input stream. |
|
LDIFReader(java.lang.String file)
Constructs an Input stream reader to read the LDIF data from the file specified. |
Method Summary | |
void |
close()
Closes the stream. |
static void |
main(java.lang.String[] args)
Test driver - to read the ldif file and print each record. |
java.util.Vector |
nextEntry()
Returns the next entry in the LDIF file. |
LDIFRecord |
nextRecord()
Returns the next record in the LDIF file. |
void |
setReadFileContentForAttrib(boolean bool)
if set, the attribute value will be treated as a file name and the contents of which will be taken as the attribute value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDIFReader() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public LDIFReader(java.lang.String file) throws java.io.IOException
file
- the name of the LDIF filejava.io.IOException
- If an I/O error occurs.public LDIFReader(java.io.File fileObj) throws java.io.IOException
fileObj
- The file object of the LDIF filejava.io.IOException
- If an I/O error occurs.public LDIFReader(java.io.InputStream ds) throws java.io.IOException
dstThe
- input stream providing the LDIF datajava.io.IOException
- If an I/O error occurs.Method Detail |
public java.util.Vector nextEntry() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public LDIFRecord nextRecord() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.public void close() throws java.io.IOException
java.io.IOException
- If an error occurs.public void setReadFileContentForAttrib(boolean bool)
bool
- boolean value to be set.public static void main(java.lang.String[] args)
args
- name of the LDIF file to read
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |