Improve Java style in sample import client

 * Use List rather than ArrayList
 * Close resources in a finally block
 * Use for-each rather than iterators
 * Use a Reader directly rather than InputStream+InputStreamReader