Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. protected void setup(Context context) throws IOException,
  2. InterruptedException {
  3.  
  4.  
  5. super.setup(context);
  6. localFiles =DistributedCache.getLocalCacheFiles(context.getConfiguration());
  7.  
  8. for(Path myfile:localFiles)
  9. {
  10. String line=null;
  11. String nameofFile=myfile.getName();
  12. File file =new File(nameofFile);
  13. FileReader fr= new FileReader(file);
  14. BufferedReader br= new BufferedReader(fr);
  15. line=br.readLine();
  16. while(line!=null)
  17. {
  18. String[] arr=line.split("t");
  19. myMap.put(arr[0], arr[1]);
  20. line=br.readLine();
  21. }
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement