protected Entry get ( DirectoryEntry parent , String name ) { parent . getClass ( ) ; Entry [ ] entries = listEntries ( parent ) ; if ( entries != null ) { for ( int i = 0 ; i < entries . length ; i ++ ) { if ( name . equals ( entries [ i ] . getName ( ) ) ) { return entries [ i ] ; } } } return null ; }
Gets the named entry in the specified directory . The default implementation lists all the entries in the directory and looks for the one with the matching name . Caching implementations will likely want to override this behaviour .