org.apache.ldap.clients.embedded
Class InputParser

java.lang.Object
  extended by org.apache.ldap.clients.embedded.InputParser

public class InputParser
extends java.lang.Object

Parses Input for LDIF Entries.


Field Summary
(package private)  java.util.LinkedList m_entryList
           
 
Constructor Summary
InputParser()
           
 
Method Summary
 java.lang.String getEntry(int a_index)
          Get an LDIF entry from the parsed list.
 int getEntryCount()
          Gets the number of LDIF entries that were parsed out
 void parseInputStream(java.io.InputStream a_stream)
          Parse the InputStream passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_entryList

java.util.LinkedList m_entryList
Constructor Detail

InputParser

public InputParser()
Method Detail

parseInputStream

public void parseInputStream(java.io.InputStream a_stream)
Parse the InputStream passed in. Each LDIF entry will be stored by the object.

Parameters:
a_stream - Stream to be parsed

getEntryCount

public int getEntryCount()
Gets the number of LDIF entries that were parsed out

Returns:
Number of LDIF entries

getEntry

public java.lang.String getEntry(int a_index)
Get an LDIF entry from the parsed list. The index of the entry to return is required. It is important to retrive the entris in order as there may be dependancies.

Parameters:
a_index - Index of the object in the list
Returns:
LDIF entry