|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.util.LDIFReader
The class to process the inputStream object to read an LDIF file.
This calss reads LDAP entries and LDAP Requests form an LDIF file
The constructors uses a default size value of 8,192 to create the buffering character-input stream and assume that the size is big enough to hold the dn field and the first line of the next field of the first record in the LDIF file currently being read.
The constructors uses '1' as default LDIF file version
Constructor Summary | |
LDIFReader(java.io.InputStream in)
Constructs an LDIFReader object by initializing LDIF_VERSION, isRequest, InputStreamReader, and BufferedReader. |
|
LDIFReader(java.io.InputStream in,
int version)
Constructs an LDIFReader object by initializing LDIF_VERSION, isRequest, InputStreamReader, and BufferedReader. |
|
LDIFReader(java.io.InputStream in,
int version,
int bufSize)
Constructs an LDIFReader object by initializing LDIF_VERSION, isRequest, InputStreamReader, and BufferedReader. |
Method Summary | |
java.lang.String |
getVersion()
Gets the version of the LDIF data associated with the input stream |
boolean |
isRequest()
Returns true if request data ist associated with the input stream, or false if content data. |
LDAPMessage |
readMessage()
Read LDAP Requests from the LDIF request (change) file or content file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDIFReader(java.io.InputStream in) throws java.io.IOException, LDAPLocalException
in
- The InputStream object to be processed by LDIFReaderpublic LDIFReader(java.io.InputStream in, int version) throws java.io.IOException, LDAPLocalException
in
- The Inputstream object to be processed by LDIFReaderversion
- The version currently used in the LDIF filepublic LDIFReader(java.io.InputStream in, int version, int bufSize) throws java.io.IOException, LDAPLocalException
in
- The Inputstream object to be processed by LDIFReaderversion
- The version currently used in the LDIF filebufSize
- The size used to create a buffering character-input
stream. The defaule value is 8,192.Method Detail |
public java.lang.String getVersion()
getVersion
in interface LDAPReader
public boolean isRequest()
isRequest
in interface LDAPReader
public LDAPMessage readMessage() throws java.io.IOException, LDAPException
readMessage
in interface LDAPReader
java.io.IOException
LDAPException
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |