Package org.bedework.util.directory.ldif
Class LdifRecord.Input
java.lang.Object
org.bedework.util.directory.ldif.LdifRecord.Input
- Enclosing class:
- LdifRecord
This class allows us to keep track of our position in the ldif file.
We attempt to leave ourselves positioned at the start of the next
record (or the end of file.
startpos Will be set to indicate the position of the dn
pos On return from read methods this will be the number of
the last line read, presumably the null terminator.
eof True if we are at eof.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
in
-
eof
public boolean eof
-
-
Constructor Details
-
Input
public Input() -
Input
-
-
Method Details
-
init
-
readLine
Read a line from the input stream. Stop at the first line terminator. This should handle DOS/UNIX data.- Returns:
- String null for eof or a null line so check the flag.
- Throws:
NamingException
-
readFullLine
- Throws:
Exception
-
skip
Read and discard ldif data until a terminator is seen.- Throws:
NamingException
-
getPos
public int getPos()
-