{"action":"created","comment":{"url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/comments/29921228","id":29921228,"diff_hunk":"@@ -3,58 +3,97 @@\n import model.data.DataColumn;\n import model.data.DataModel;\n import model.data.DataRow;\n-import model.reader.DataReader;\n+import model.data.DataValue;\n+import model.data.value.StringValue;\n \n-import java.io.*;\n+import java.io.File;\n+import java.io.FileNotFoundException;\n+import java.io.PrintWriter;\n+import java.io.UnsupportedEncodingException;\n import java.util.ArrayList;\n-import java.util.Iterator;\n import java.util.List;\n import java.util.Map;\n+import java.util.logging.Logger;\n \n /**\n- * Write output after analysis is done\n+ * Write output after analysis is done.\n  */\n public class DataModelWriter {\n-\tpublic static void write(DataModel datamodel, String filename, String delimiter){\n-\t\tIterator rows = datamodel.getRows();\n-\t\tMap<String, DataColumn> columnsData = datamodel.getColumns();\n-\t\tList<DataColumn> columnList = new ArrayList<>();\n+\tprivate File file;\n+\tprivate DataModel dataModel;\n+\tprivate String delimiter = \",\";\n+\tprivate List<DataColumn> columns;\n+\tprivate Logger logger = Logger.getLogger(\"DataModelWriter\");\n \n+\t// Options for user\n+\tprivate boolean quotationmarks;\n+\n+\t/**\n+\t * Constructor for DataModelWriter.\n+\t *\n+\t * @param dataModelInput the output dataModel\n+\t * @param fileInput      the name of the output file\n+\t */\n+\tpublic DataModelWriter(DataModel dataModelInput, File fileInput) {","path":"src/main/java/output/DataModelWriter.java","position":43,"original_position":43,"commit_id":"c7ee73dea8bb1e769f4c6c617e2fee5d8a3ebe6d","original_commit_id":"c7ee73dea8bb1e769f4c6c617e2fee5d8a3ebe6d","user":{"login":"JensLangerak","id":5961684,"avatar_url":"https://avatars.githubusercontent.com/u/5961684?v=3","gravatar_id":"","url":"https://api.github.com/users/JensLangerak","html_url":"https://github.com/JensLangerak","followers_url":"https://api.github.com/users/JensLangerak/followers","following_url":"https://api.github.com/users/JensLangerak/following{/other_user}","gists_url":"https://api.github.com/users/JensLangerak/gists{/gist_id}","starred_url":"https://api.github.com/users/JensLangerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JensLangerak/subscriptions","organizations_url":"https://api.github.com/users/JensLangerak/orgs","repos_url":"https://api.github.com/users/JensLangerak/repos","events_url":"https://api.github.com/users/JensLangerak/events{/privacy}","received_events_url":"https://api.github.com/users/JensLangerak/received_events","type":"User","site_admin":false},"body":"Ik zou de delimiter nu al aan de constuctor mee geven, anders moet dit later overal worden aangepast","created_at":"2015-05-08T07:31:05Z","updated_at":"2015-05-08T07:31:05Z","html_url":"https://github.com/clanghout/Health-Informatics-3/pull/25#discussion_r29921228","pull_request_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/comments/29921228"},"html":{"href":"https://github.com/clanghout/Health-Informatics-3/pull/25#discussion_r29921228"},"pull_request":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25","id":34964411,"html_url":"https://github.com/clanghout/Health-Informatics-3/pull/25","diff_url":"https://github.com/clanghout/Health-Informatics-3/pull/25.diff","patch_url":"https://github.com/clanghout/Health-Informatics-3/pull/25.patch","issue_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/25","number":25,"state":"open","locked":false,"title":"Data writer","user":{"login":"clanghout","id":5969237,"avatar_url":"https://avatars.githubusercontent.com/u/5969237?v=3","gravatar_id":"","url":"https://api.github.com/users/clanghout","html_url":"https://github.com/clanghout","followers_url":"https://api.github.com/users/clanghout/followers","following_url":"https://api.github.com/users/clanghout/following{/other_user}","gists_url":"https://api.github.com/users/clanghout/gists{/gist_id}","starred_url":"https://api.github.com/users/clanghout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clanghout/subscriptions","organizations_url":"https://api.github.com/users/clanghout/orgs","repos_url":"https://api.github.com/users/clanghout/repos","events_url":"https://api.github.com/users/clanghout/events{/privacy}","received_events_url":"https://api.github.com/users/clanghout/received_events","type":"User","site_admin":false},"body":"DataModelWriter is nu beter, verder heb ik in de ui een save knop toegevoegd die een file selector geeft en je een opslaglocatie laat kiezen. \r\n\r\nDataModel's getRows functie returnt nu een immutable list in plaats van een Iterator, ik heb alle code aangepast die deze funtie gebruikt. ","created_at":"2015-05-07T22:21:23Z","updated_at":"2015-05-08T07:31:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"006d919e542272e00c685d3b06abc7415ffe6608","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25/commits","review_comments_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25/comments","review_comment_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/25/comments","statuses_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/statuses/c7ee73dea8bb1e769f4c6c617e2fee5d8a3ebe6d","head":{"label":"clanghout:data-writer","ref":"data-writer","sha":"c7ee73dea8bb1e769f4c6c617e2fee5d8a3ebe6d","user":{"login":"clanghout","id":5969237,"avatar_url":"https://avatars.githubusercontent.com/u/5969237?v=3","gravatar_id":"","url":"https://api.github.com/users/clanghout","html_url":"https://github.com/clanghout","followers_url":"https://api.github.com/users/clanghout/followers","following_url":"https://api.github.com/users/clanghout/following{/other_user}","gists_url":"https://api.github.com/users/clanghout/gists{/gist_id}","starred_url":"https://api.github.com/users/clanghout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clanghout/subscriptions","organizations_url":"https://api.github.com/users/clanghout/orgs","repos_url":"https://api.github.com/users/clanghout/repos","events_url":"https://api.github.com/users/clanghout/events{/privacy}","received_events_url":"https://api.github.com/users/clanghout/received_events","type":"User","site_admin":false},"repo":{"id":34447605,"name":"Health-Informatics-3","full_name":"clanghout/Health-Informatics-3","owner":{"login":"clanghout","id":5969237,"avatar_url":"https://avatars.githubusercontent.com/u/5969237?v=3","gravatar_id":"","url":"https://api.github.com/users/clanghout","html_url":"https://github.com/clanghout","followers_url":"https://api.github.com/users/clanghout/followers","following_url":"https://api.github.com/users/clanghout/following{/other_user}","gists_url":"https://api.github.com/users/clanghout/gists{/gist_id}","starred_url":"https://api.github.com/users/clanghout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clanghout/subscriptions","organizations_url":"https://api.github.com/users/clanghout/orgs","repos_url":"https://api.github.com/users/clanghout/repos","events_url":"https://api.github.com/users/clanghout/events{/privacy}","received_events_url":"https://api.github.com/users/clanghout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clanghout/Health-Informatics-3","description":"","fork":false,"url":"https://api.github.com/repos/clanghout/Health-Informatics-3","forks_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/forks","keys_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/teams","hooks_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/hooks","issue_events_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/events{/number}","events_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/events","assignees_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/assignees{/user}","branches_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/branches{/branch}","tags_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/tags","blobs_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/statuses/{sha}","languages_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/languages","stargazers_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/stargazers","contributors_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/contributors","subscribers_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/subscribers","subscription_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/subscription","commits_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/contents/{+path}","compare_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/merges","archive_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/downloads","issues_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues{/number}","pulls_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls{/number}","milestones_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/milestones{/number}","notifications_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/labels{/name}","releases_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/releases{/id}","created_at":"2015-04-23T09:44:17Z","updated_at":"2015-05-07T20:55:56Z","pushed_at":"2015-05-08T07:27:10Z","git_url":"git://github.com/clanghout/Health-Informatics-3.git","ssh_url":"git@github.com:clanghout/Health-Informatics-3.git","clone_url":"https://github.com/clanghout/Health-Informatics-3.git","svn_url":"https://github.com/clanghout/Health-Informatics-3","homepage":null,"size":1908,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"clanghout:master","ref":"master","sha":"211cf55ba6799138f0a5f5bd847dc59a887e32be","user":{"login":"clanghout","id":5969237,"avatar_url":"https://avatars.githubusercontent.com/u/5969237?v=3","gravatar_id":"","url":"https://api.github.com/users/clanghout","html_url":"https://github.com/clanghout","followers_url":"https://api.github.com/users/clanghout/followers","following_url":"https://api.github.com/users/clanghout/following{/other_user}","gists_url":"https://api.github.com/users/clanghout/gists{/gist_id}","starred_url":"https://api.github.com/users/clanghout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clanghout/subscriptions","organizations_url":"https://api.github.com/users/clanghout/orgs","repos_url":"https://api.github.com/users/clanghout/repos","events_url":"https://api.github.com/users/clanghout/events{/privacy}","received_events_url":"https://api.github.com/users/clanghout/received_events","type":"User","site_admin":false},"repo":{"id":34447605,"name":"Health-Informatics-3","full_name":"clanghout/Health-Informatics-3","owner":{"login":"clanghout","id":5969237,"avatar_url":"https://avatars.githubusercontent.com/u/5969237?v=3","gravatar_id":"","url":"https://api.github.com/users/clanghout","html_url":"https://github.com/clanghout","followers_url":"https://api.github.com/users/clanghout/followers","following_url":"https://api.github.com/users/clanghout/following{/other_user}","gists_url":"https://api.github.com/users/clanghout/gists{/gist_id}","starred_url":"https://api.github.com/users/clanghout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clanghout/subscriptions","organizations_url":"https://api.github.com/users/clanghout/orgs","repos_url":"https://api.github.com/users/clanghout/repos","events_url":"https://api.github.com/users/clanghout/events{/privacy}","received_events_url":"https://api.github.com/users/clanghout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clanghout/Health-Informatics-3","description":"","fork":false,"url":"https://api.github.com/repos/clanghout/Health-Informatics-3","forks_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/forks","keys_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/teams","hooks_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/hooks","issue_events_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/events{/number}","events_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/events","assignees_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/assignees{/user}","branches_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/branches{/branch}","tags_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/tags","blobs_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/statuses/{sha}","languages_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/languages","stargazers_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/stargazers","contributors_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/contributors","subscribers_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/subscribers","subscription_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/subscription","commits_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/contents/{+path}","compare_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/merges","archive_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/downloads","issues_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues{/number}","pulls_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls{/number}","milestones_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/milestones{/number}","notifications_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/labels{/name}","releases_url":"https://api.github.com/repos/clanghout/Health-Informatics-3/releases{/id}","created_at":"2015-04-23T09:44:17Z","updated_at":"2015-05-07T20:55:56Z","pushed_at":"2015-05-08T07:27:10Z","git_url":"git://github.com/clanghout/Health-Informatics-3.git","ssh_url":"git@github.com:clanghout/Health-Informatics-3.git","clone_url":"https://github.com/clanghout/Health-Informatics-3.git","svn_url":"https://github.com/clanghout/Health-Informatics-3","homepage":null,"size":1908,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25"},"html":{"href":"https://github.com/clanghout/Health-Informatics-3/pull/25"},"issue":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/25"},"comments":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/clanghout/Health-Informatics-3/statuses/c7ee73dea8bb1e769f4c6c617e2fee5d8a3ebe6d"}}}}