Some refactoring for getting contents of files in Android-side enumeration