Class 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 Detail

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

        public int getPos()