private List loadRecentList ( ) { try { InputStream in = new BufferedInputStream ( new FileInputStream ( RECENT_FILE_NAME ) ) ; XMLDecoder d = new XMLDecoder ( in ) ; Object result = d . readObject ( ) ; d . close ( ) ; return ( List ) result ; } catch ( FileNotFoundException ex ) { // This is ok, it's probably the first time the picker has been used. return new ArrayList ( ) ; } }
Retrieves the list of recently selected examples from a file on the file system .