Package org.bedework.util.directory.ldif
Class LdifRecord.Input
- java.lang.Object
-
- org.bedework.util.directory.ldif.LdifRecord.Input
-
- Enclosing class:
- LdifRecord
public static class LdifRecord.Input extends Object
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPos()voidinit(Reader in)StringreadFullLine()StringreadLine()Read a line from the input stream.voidskip()Read and discard ldif data until a terminator is seen.
-
-
-
Field Detail
-
in
public Reader in
-
eof
public boolean eof
-
-
Constructor Detail
-
Input
public Input()
-
Input
public Input(Reader in)
-
-
Method Detail
-
init
public void init(Reader in)
-
readLine
public String readLine() throws NamingException
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
-
skip
public void skip() throws NamingExceptionRead and discard ldif data until a terminator is seen.- Throws:
NamingException
-
getPos
public int getPos()
-
-