/** * {@inheritDoc} */ public void close() throws IOException { if ( reader != null ) { position = new Position(); reader.close(); containsEntries = false; containsChanges = false; } } }
position.inc( "version:".length() ); parseFill( document, position );
position = new Position();
position = new Position();
/** * Constructors */ public LdifAttributesReader() { lines = new ArrayList<String>(); position = new Position(); version = DEFAULT_VERSION; }
private static void parseFill( char[] document, Position position ) { while ( StringTools.isCharASCII( document, position.pos, ' ' ) ) { position.inc(); } }
/** * Constructors */ public LdifReader() { lines = new ArrayList<String>(); position = new Position(); version = DEFAULT_VERSION; }
private void init( BufferedReader reader ) throws LdapLdifException, LdapException { this.reader = reader; lines = new ArrayList<String>(); position = new Position(); version = DEFAULT_VERSION; containsChanges = false; containsEntries = false; // First get the version - if any - version = parseVersion(); prefetched = parseEntry(); }