{"id":1127,"date":"2016-10-14T20:30:19","date_gmt":"2016-10-14T11:30:19","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1127"},"modified":"2017-02-13T14:22:25","modified_gmt":"2017-02-13T05:22:25","slug":"java-byte-%e3%81%a8-string-%e3%81%ae%e7%9b%b8%e4%ba%92%e5%a4%89%e6%8f%9b","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1127","title":{"rendered":"Java: byte[] \u3068 String \u306e\u76f8\u4e92\u5909\u63db"},"content":{"rendered":"<p>Java \u306b\u304a\u3051\u308b byte[] \u3068 String \u306e\u76f8\u4e92\u5909\u63db<\/p>\n<h3>String \u304b\u3089 byte[] \u3078<\/h3>\n<pre class=\"lang:default decode:true \" >String str = \"Hello\";\r\nbyte[] bytes = str.getBytes(\"UTF-8\");<\/pre>\n<h3>byte[] \u304b\u3089 String \u3078<\/h3>\n<pre class=\"lang:java decode:true \" >byte[] bytes = {72, 101, 108, 108, 111};\r\nString str = new String(bytes, \"UTF-8\");<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Java \u306b\u304a\u3051\u308b byte[] \u3068 String \u306e\u76f8\u4e92\u5909\u63db String \u304b\u3089 byte[] \u3078 String str = &#8220;Hello&#8221;; byte[] bytes = str.getBytes(&#8220;UTF-8&#8221;); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[41],"class_list":["post-1127","post","type-post","status-publish","format-standard","hentry","category-memo","tag-java"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1127"}],"version-history":[{"count":2,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1127\/revisions"}],"predecessor-version":[{"id":1130,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1127\/revisions\/1130"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}