{"action":"created","comment":{"url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/comments/188787447","pull_request_review_id":120838068,"id":188787447,"diff_hunk":"@@ -0,0 +1,105 @@\n+package Scanner;\n+import storage.PersonStorage;\n+\n+import java.io.BufferedReader;\n+import java.io.FileNotFoundException;\n+import java.io.FileReader;\n+import java.io.IOException;\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.Scanner;\n+\n+public class ScannerCsv implements IScannerCsv {\n+\n+    //Сделал чтение из через буффер ридер и просто вывод на экран что в файле\n+   public void toReadFromFile() throws FileNotFoundException {\n+        String csvFile = \"C:\\\\Users\\\\Angron\\\\Desktop\\\\csv\\\\test2.csv\";\n+        BufferedReader br = null;\n+        String line = \"\";\n+        String cvsSplitBy = \";\";\n+\n+        try {\n+\n+            br = new BufferedReader(new FileReader(csvFile));\n+            while ((line = br.readLine()) != null) {\n+\n+                // use separator\n+                String[] lineFromFile = line.split(cvsSplitBy);\n+\n+                System.out.println(\"Line from file[\" + lineFromFile[0] + lineFromFile[1] + lineFromFile[2] + lineFromFile[3] + lineFromFile[4] + lineFromFile[5]);\n+                System.out.println();\n+\n+        } //try\n+        } catch (FileNotFoundException e) {\n+            e.printStackTrace();\n+        } catch (IOException e) {\n+            e.printStackTrace();\n+        } finally {\n+            if (br != null) {\n+                try {\n+                    br.close();\n+                } catch (IOException e) {\n+                    e.printStackTrace();\n+                }\n+    }\n+\n+}} //toReadFromFile реализация по другому\n+    public void toReadFromFile2()throws FileNotFoundException{\n+        String csvFile = \"C:\\\\Users\\\\Angron\\\\Desktop\\\\csv\\\\test2.csv\";\n+        //String line = \"\";\n+        String cvsSplitBy = \";\";\n+        String line = null;\n+        Scanner scanner = null;\n+        int index = 0;\n+        List<PersonStorage> personList = new ArrayList<>();\n+        BufferedReader br = new BufferedReader(new FileReader(csvFile));\n+        try {\n+            while ((line = br.readLine()) != null) {\n+                PersonStorage persons = new PersonStorage();\n+                scanner = new Scanner(line);\n+                scanner.useDelimiter(\";\");\n+                while (scanner.hasNext()) {\n+                    String data = scanner.next();\n+                    if (index == 0)","path":"src/main/java/Scanner/ScannerCsv.java","position":66,"original_position":63,"commit_id":"77e9f87009e895b189cd2815e3b04b1d8ce70367","original_commit_id":"ebd5c7488a5b776f314f4726d6a6258a3e125e5f","user":{"login":"iliaKulakov","id":38052676,"avatar_url":"https://avatars1.githubusercontent.com/u/38052676?v=4","gravatar_id":"","url":"https://api.github.com/users/iliaKulakov","html_url":"https://github.com/iliaKulakov","followers_url":"https://api.github.com/users/iliaKulakov/followers","following_url":"https://api.github.com/users/iliaKulakov/following{/other_user}","gists_url":"https://api.github.com/users/iliaKulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/iliaKulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliaKulakov/subscriptions","organizations_url":"https://api.github.com/users/iliaKulakov/orgs","repos_url":"https://api.github.com/users/iliaKulakov/repos","events_url":"https://api.github.com/users/iliaKulakov/events{/privacy}","received_events_url":"https://api.github.com/users/iliaKulakov/received_events","type":"User","site_admin":false},"body":"Может мне вообще все чтение , через буффер ридер делать вместо сканера?\r\n","created_at":"2018-05-16T22:09:55Z","updated_at":"2018-05-16T22:09:55Z","html_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv/pull/2#discussion_r188787447","pull_request_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/comments/188787447"},"html":{"href":"https://github.com/iliaKulakov/CompanyDirectoryCsv/pull/2#discussion_r188787447"},"pull_request":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2"}},"in_reply_to_id":187840416},"pull_request":{"url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2","id":187686743,"html_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv/pull/2","diff_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv/pull/2.diff","patch_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv/pull/2.patch","issue_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/2","number":2,"state":"open","locked":false,"title":"Develop","user":{"login":"iliaKulakov","id":38052676,"avatar_url":"https://avatars1.githubusercontent.com/u/38052676?v=4","gravatar_id":"","url":"https://api.github.com/users/iliaKulakov","html_url":"https://github.com/iliaKulakov","followers_url":"https://api.github.com/users/iliaKulakov/followers","following_url":"https://api.github.com/users/iliaKulakov/following{/other_user}","gists_url":"https://api.github.com/users/iliaKulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/iliaKulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliaKulakov/subscriptions","organizations_url":"https://api.github.com/users/iliaKulakov/orgs","repos_url":"https://api.github.com/users/iliaKulakov/repos","events_url":"https://api.github.com/users/iliaKulakov/events{/privacy}","received_events_url":"https://api.github.com/users/iliaKulakov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-13T19:43:12Z","updated_at":"2018-05-16T22:09:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26fe1ba24dc523df33314f98dc3549fd06c1b822","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2/commits","review_comments_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2/comments","review_comment_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/2/comments","statuses_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/statuses/77e9f87009e895b189cd2815e3b04b1d8ce70367","head":{"label":"iliaKulakov:develop","ref":"develop","sha":"77e9f87009e895b189cd2815e3b04b1d8ce70367","user":{"login":"iliaKulakov","id":38052676,"avatar_url":"https://avatars1.githubusercontent.com/u/38052676?v=4","gravatar_id":"","url":"https://api.github.com/users/iliaKulakov","html_url":"https://github.com/iliaKulakov","followers_url":"https://api.github.com/users/iliaKulakov/followers","following_url":"https://api.github.com/users/iliaKulakov/following{/other_user}","gists_url":"https://api.github.com/users/iliaKulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/iliaKulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliaKulakov/subscriptions","organizations_url":"https://api.github.com/users/iliaKulakov/orgs","repos_url":"https://api.github.com/users/iliaKulakov/repos","events_url":"https://api.github.com/users/iliaKulakov/events{/privacy}","received_events_url":"https://api.github.com/users/iliaKulakov/received_events","type":"User","site_admin":false},"repo":{"id":131557725,"name":"CompanyDirectoryCsv","full_name":"iliaKulakov/CompanyDirectoryCsv","owner":{"login":"iliaKulakov","id":38052676,"avatar_url":"https://avatars1.githubusercontent.com/u/38052676?v=4","gravatar_id":"","url":"https://api.github.com/users/iliaKulakov","html_url":"https://github.com/iliaKulakov","followers_url":"https://api.github.com/users/iliaKulakov/followers","following_url":"https://api.github.com/users/iliaKulakov/following{/other_user}","gists_url":"https://api.github.com/users/iliaKulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/iliaKulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliaKulakov/subscriptions","organizations_url":"https://api.github.com/users/iliaKulakov/orgs","repos_url":"https://api.github.com/users/iliaKulakov/repos","events_url":"https://api.github.com/users/iliaKulakov/events{/privacy}","received_events_url":"https://api.github.com/users/iliaKulakov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv","description":"application for processing csv files","fork":false,"url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv","forks_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/forks","keys_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/teams","hooks_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/hooks","issue_events_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/events{/number}","events_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/events","assignees_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/assignees{/user}","branches_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/branches{/branch}","tags_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/tags","blobs_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/refs{/sha}","trees_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/statuses/{sha}","languages_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/languages","stargazers_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/stargazers","contributors_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/contributors","subscribers_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/subscribers","subscription_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/subscription","commits_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/commits{/sha}","git_commits_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/commits{/sha}","comments_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/comments{/number}","issue_comment_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/comments{/number}","contents_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/contents/{+path}","compare_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/merges","archive_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/downloads","issues_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues{/number}","pulls_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls{/number}","milestones_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/milestones{/number}","notifications_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/labels{/name}","releases_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/releases{/id}","deployments_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/deployments","created_at":"2018-04-30T05:03:34Z","updated_at":"2018-05-01T06:25:20Z","pushed_at":"2018-05-16T21:35:56Z","git_url":"git://github.com/iliaKulakov/CompanyDirectoryCsv.git","ssh_url":"git@github.com:iliaKulakov/CompanyDirectoryCsv.git","clone_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv.git","svn_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"iliaKulakov:master","ref":"master","sha":"1da7a76d9bf32b6d8e7db9b02fc355ffb63f250c","user":{"login":"iliaKulakov","id":38052676,"avatar_url":"https://avatars1.githubusercontent.com/u/38052676?v=4","gravatar_id":"","url":"https://api.github.com/users/iliaKulakov","html_url":"https://github.com/iliaKulakov","followers_url":"https://api.github.com/users/iliaKulakov/followers","following_url":"https://api.github.com/users/iliaKulakov/following{/other_user}","gists_url":"https://api.github.com/users/iliaKulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/iliaKulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliaKulakov/subscriptions","organizations_url":"https://api.github.com/users/iliaKulakov/orgs","repos_url":"https://api.github.com/users/iliaKulakov/repos","events_url":"https://api.github.com/users/iliaKulakov/events{/privacy}","received_events_url":"https://api.github.com/users/iliaKulakov/received_events","type":"User","site_admin":false},"repo":{"id":131557725,"name":"CompanyDirectoryCsv","full_name":"iliaKulakov/CompanyDirectoryCsv","owner":{"login":"iliaKulakov","id":38052676,"avatar_url":"https://avatars1.githubusercontent.com/u/38052676?v=4","gravatar_id":"","url":"https://api.github.com/users/iliaKulakov","html_url":"https://github.com/iliaKulakov","followers_url":"https://api.github.com/users/iliaKulakov/followers","following_url":"https://api.github.com/users/iliaKulakov/following{/other_user}","gists_url":"https://api.github.com/users/iliaKulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/iliaKulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliaKulakov/subscriptions","organizations_url":"https://api.github.com/users/iliaKulakov/orgs","repos_url":"https://api.github.com/users/iliaKulakov/repos","events_url":"https://api.github.com/users/iliaKulakov/events{/privacy}","received_events_url":"https://api.github.com/users/iliaKulakov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv","description":"application for processing csv files","fork":false,"url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv","forks_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/forks","keys_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/teams","hooks_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/hooks","issue_events_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/events{/number}","events_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/events","assignees_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/assignees{/user}","branches_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/branches{/branch}","tags_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/tags","blobs_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/refs{/sha}","trees_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/statuses/{sha}","languages_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/languages","stargazers_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/stargazers","contributors_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/contributors","subscribers_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/subscribers","subscription_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/subscription","commits_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/commits{/sha}","git_commits_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/git/commits{/sha}","comments_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/comments{/number}","issue_comment_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/comments{/number}","contents_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/contents/{+path}","compare_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/merges","archive_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/downloads","issues_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues{/number}","pulls_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls{/number}","milestones_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/milestones{/number}","notifications_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/labels{/name}","releases_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/releases{/id}","deployments_url":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/deployments","created_at":"2018-04-30T05:03:34Z","updated_at":"2018-05-01T06:25:20Z","pushed_at":"2018-05-16T21:35:56Z","git_url":"git://github.com/iliaKulakov/CompanyDirectoryCsv.git","ssh_url":"git@github.com:iliaKulakov/CompanyDirectoryCsv.git","clone_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv.git","svn_url":"https://github.com/iliaKulakov/CompanyDirectoryCsv","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2"},"html":{"href":"https://github.com/iliaKulakov/CompanyDirectoryCsv/pull/2"},"issue":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/2"},"comments":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/iliaKulakov/CompanyDirectoryCsv/statuses/77e9f87009e895b189cd2815e3b04b1d8ce70367"}},"author_association":"OWNER"}}
{"actor":{"display_login":"iliaKulakov"}}