Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Download From CSV and put to Container
- * @param in Buffered Reader from downloading CSV
- * @throws IOException
- */
- private void fillData(BufferedReader in) throws IOException {
- int i = 0;
- postList.clear();
- CSVReader reader = new CSVReader(in);
- Post post;
- String[] nextRecord;
- while ((nextRecord = reader.readNext()) != null) {
- if(i > 0) {
- post = new Post("http://filehosting.pptik.id/Bawaslu-Ftp-Testing/" + nextRecord[0],
- nextRecord[1],
- nextRecord[3],
- nextRecord[4],
- nextRecord[5],
- nextRecord[8]
- );
- postList.add(post);
- }
- i = i + 1;
- }
- pAdapter.notifyDataSetChanged();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement