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.
  • Field Details

    • in

      public Reader in
    • eof

      public boolean eof
  • Constructor Details

    • Input

      public Input()
    • Input

      public Input(Reader in)
  • Method Details

    • 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
    • readFullLine

      public String readFullLine() throws Exception
      Throws:
      Exception
    • skip

      public void skip() throws NamingException
      Read and discard ldif data until a terminator is seen.
      Throws:
      NamingException
    • getPos

      public int getPos()