{"id":19650,"date":"2017-03-16T19:58:12","date_gmt":"2017-03-16T10:58:12","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=19650"},"modified":"2024-05-06T11:40:55","modified_gmt":"2024-05-06T02:40:55","slug":"%e3%80%90java%e5%85%a5%e9%96%80%e3%80%91string%e2%87%94byte%e3%81%ae%e5%a4%89%e6%8f%9b%e6%96%b9%e6%b3%95getbytes","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/19650","title":{"rendered":"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db"},"content":{"rendered":"<p>Java\u306eString\u578b\u306e\u5909\u6570\u3092\u6271\u3046\u4e0a\u3067\u3001byte\u578b\u306b\u5909\u63db\u304c\u5fc5\u8981\u306a\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001getBytes\u306e\u4f7f\u3044\u65b9\u3084String\u578b\u3068byte\u578b\u306e\u5909\u63db\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>\u305d\u3082\u305d\u3082byte\u578b\u3063\u3066\u306a\u306b\uff1f<\/b><\/li>\n<li><b>getBytes\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044<\/b><\/li>\n<li><b>byte\u578b\u306e\u3055\u307e\u3056\u307e\u306a\u5909\u63db\u65b9\u6cd5\u306b\u3064\u3044\u3066\u77e5\u308a\u305f\u3044<\/b><\/li>\n<li><b>16\u9032\u6570\u6587\u5b57\u5217\u21d4byte\u914d\u5217\u306e\u5909\u63db\u65b9\u6cd5\u304c\u77e5\u308a\u305f\u3044<\/b><\/li>\n<\/ul>\n<\/div>\n<p>getBytes\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5909\u63db\u65b9\u6cd5\u307e\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u306a\u304a\u3001Java\u306e\u8a18\u4e8b\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/www.sejuku.net\/blog\/148098\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Java\u306ebyte\u578b\u3068\u306f<\/h2>\n<p>byte\u578b\u3068\u306f1\u30d0\u30a4\u30c8(8\u30d3\u30c3\u30c8)\u306e\u30b5\u30a4\u30ba\u306e\u6574\u6570\u5024\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<p>Java\u306ebyte\u578b\u306f\u7b26\u53f7\u4ed8\u304d\u3067-128\u304b\u3089127\u307e\u3067\u3067\u3059\u3002\u6587\u5b57\u5217\u306f\u6587\u5b57\u306e\u914d\u5217\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u306e\u6587\u5b57\u306f\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u5f93\u3063\u3066byte\u578b\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3001\u6587\u5b57\u5217\u306fbyte\u578b\u306e\u914d\u5217\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3057\u3001byte\u578b\u306e\u914d\u5217\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Java\u306egetBytes\u3068\u306f<\/h2>\n<p>getBytes\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5bfe\u8c61\u306e\u6587\u5b57\u5217\u3092\u30d0\u30a4\u30c8\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u5316\u3057\u3066\u3001\u7d50\u679c\u3092Byte\u578b\u306e\u914d\u5217\u3068\u3057\u3066\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">String.getBytes()<\/pre>\n<p>\u307e\u305f\u3001getBytes\u306f\u5f15\u6570\u306b\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">String.getBytes(Charset charset)<\/pre>\n<p>\u6587\u5b57\u30b3\u30fc\u30c9\u306fUTF-8\u3001Shift-jis\u3001ASCII\u30b3\u30fc\u30c9\u306a\u3069\u3082\u6307\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/19673\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_thumb-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Java\u5165\u9580\u3011\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u78ba\u8a8d\u30fb\u5909\u63db\u30fb\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>getBytes\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001String\u578b\u3068Byte\u578b\u306e\u76f8\u4e92\u5909\u63db\u306e\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>byte\u914d\u5217\u304b\u3089String\u3078\u306e\u5909\u63db<\/h3>\n<p>byte\u578b\u304b\u3089String\u578b\u3078\u5909\u63db\u3059\u308b\u5834\u5408\u306f\u3001String\u578b\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306bbyte\u578b\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bbyte\u578b\u304b\u3089String\u578b\u3078\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">import java.nio.charset.StandardCharsets;\r\n \r\npublic class Main {\r\n \r\n    public static void main(String[] args) {\r\n\r\n        \/\/byte \u2192 String\r\n        byte[] sbyte = \"apple\".getBytes(StandardCharsets.UTF_8);\r\n        String str = new String(sbyte);\r\n        \r\n        System.out.println(\"str : \" + str);\r\n    }\r\n \r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">str : apple<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306fbyte\u578b\u306e\u914d\u5217\u3092\u5ba3\u8a00\u3057\u3066getBytes\u30e1\u30bd\u30c3\u30c9\u3067\u30d0\u30a4\u30ca\u30ea\u306e\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u3001String\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u5f15\u6570\u306b\u8a2d\u5b9a\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u306f\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u6307\u5b9a\u306f\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u3067\u5f15\u6570\u306b\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001StandardCharsets\u30af\u30e9\u30b9\u306fJava7\u3067\u8ffd\u52a0\u3055\u308c\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>String\u304b\u3089byte\u914d\u5217\u3078\u306e\u5909\u63db<\/h3>\n<p>String\u578b\u304b\u3089byte\u578b\u3078\u5909\u63db\u3059\u308b\u5834\u5408\u306f\u3001\u5909\u63db\u6642\u306bgetBytes\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306bString\u578b\u304b\u3089byte\u578b\u3078\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059<\/p>\n<pre class=\"lang:java decode:true \">public class Main {\r\n \r\n    public static void main(String[] args) {\r\n    \t\r\n        \/\/String\u2192byte\r\n        String str = \"apple\";\r\n        byte[] sbyte = str.getBytes();\r\n        \r\n        for(int i=0; i&lt;sbyte.length; i++) {\r\n            System.out.println(sbyte[i]);\r\n        }\r\n    }\r\n \r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">97\r\n112\r\n112\r\n108\r\n101<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306fbyte\u578b\u306e\u914d\u5217\u3092\u5ba3\u8a00\u3057\u3066String\u578b\u306e\u5909\u6570\u306b\u5bfe\u3057\u3066\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066Byte\u578b\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002byte\u578b\u306e\u5024\u306f-128\u304b\u3089127\u306e10\u9032\u6570\u3067\u8868\u73fe\u3059\u308b\u305f\u3081\u3001\u30eb\u30fc\u30d7\u3067\u914d\u5217\u306e\u8981\u7d20\u3054\u3068\u306b\u51fa\u529b\u3059\u308b\u3068\u3001\u5b9f\u884c\u7d50\u679c\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u306fString\u2192byte\u5909\u63db\u6642\u306b\u3082\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>byte\u578b\u306e\u3055\u307e\u3056\u307e\u306a\u5909\u63db\u65b9\u6cd5<\/h2>\n<p>byte\u578b\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3067<b>\u5909\u63db<\/b>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>byte\u578b\u306e\u5909\u63db\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u3082\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/19533\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_string_byte1-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Java\u3011String\u3068byte\u914d\u5217\u306e\u5909\u63db\u65b9\u6cd5\u307e\u3068\u3081<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>16\u9032\u6570\u6587\u5b57\u5217\u21d4byte\u914d\u5217\u306e\u5909\u63db<\/h2>\n<p>\u5b9f\u969b\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3067\u306f\u3001\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3084\u6587\u5b57\u5217\u309216\u9032\u6570\u306e\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3057\u3066\u3001\u7aef\u672b\u9593\u3067\u3084\u308a\u3068\u308a\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>byte\u3001String\u309216\u9032\u6570\u306b\u5909\u63db\u3059\u308b\u306b\u306f\u30012\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>1\u3064\u76ee\u306f\u3001\u300cApache Commons Codec\u300d\u306eHex\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u300cApache Commons Codec\u300d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/commons.apache.org\/proper\/commons-codec\/download_codec.cgi\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/commons.apache.org\/proper\/commons-codec\/download_codec.cgi<\/a><\/p>\n<p>2\u3064\u76ee\u306f\u3001DatatypeConverter\u30af\u30e9\u30b9\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>byte\u914d\u5217\u304b\u308916\u9032\u6570\u6587\u5b57\u5217\u3078\u306e\u5909\u63db<\/h3>\n<p>byte\u578b\u304b\u308916\u9032\u6570\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u3001\u4ee5\u4e0b\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>DatatypeConverter\u30af\u30e9\u30b9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">import javax.xml.bind.DatatypeConverter;\r\n \r\npublic class Main {\r\n \r\n    public static void main(String[] args) {\r\n    \t\r\n        \/\/byte\u219216\u9032\u6570\u6587\u5b57\u5217\r\n        byte[] sbyte = \"apple\".getBytes();\r\n        String str = DatatypeConverter.printHexBinary(sbyte);\r\n        \r\n        System.out.println(str);\r\n    }\r\n \r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">6170706C65<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u30d0\u30a4\u30c8\u578b\u914d\u5217\u306b\u30d0\u30a4\u30ca\u30ea\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u3001DatatypeConverter\u30af\u30e9\u30b9\u306eprintHexBinary\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d0\u30a4\u30ca\u30ea\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>16\u9032\u6570\u6587\u5b57\u5217\u304b\u3089byte\u914d\u5217\u3078\u306e\u5909\u63db<\/h3>\n<p>16\u9032\u6570\u6587\u5b57\u5217\u304b\u3089byte\u578b\u3078\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3092\u3001\u4ee5\u4e0b\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">import javax.xml.bind.DatatypeConverter;\r\n \r\npublic class Main {\r\n \r\n    public static void main(String[] args) {\r\n    \t\r\n        \/\/16\u9032\u6570\u6587\u5b57\u5217\u2192byte\r\n        String str = \"6170706c65\";\r\n        byte[] sbyte = DatatypeConverter.parseHexBinary(str);\r\n        \r\n        System.out.println(new String(sbyte));\r\n    }\r\n \r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">apple<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001String\u578b\u306e16\u9032\u6570\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u3001DatatypeConverter\u30af\u30e9\u30b9\u306eparseHexBinary\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5f15\u6570\u306b16\u9032\u6570\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>String\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u3078<\/h2>\n<p>String\u306e\u3055\u307e\u3056\u307e\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/20546\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/3f42241a1cb22c2f87e2e010ae85c39b-150x85.jpeg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Java String\u30117\u3064\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3067\u6587\u5b57\u5217\u64cd\u4f5c\u3092\u7406\u89e3\u3057\u3088\u3046<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e7412\u670826\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u305fString\u578b\u3068byte\u578b\u306e\u76f8\u4e92\u5909\u63db\u306e\u65b9\u6cd5\u3084\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a\u300116\u9032\u6570\u3078\u306e\u5909\u63db\u65b9\u6cd5\u306a\u3069\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>String\u578b\u21d4byte\u578b\u306b\u5909\u63db\u3059\u308b\u51e6\u7406\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u5834\u9762\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3082\u3057\u3001getBytes\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\u306eString\u578b\u306e\u5909\u6570\u3092\u6271\u3046\u4e0a\u3067\u3001byte\u578b\u306b\u5909\u63db\u304c\u5fc5\u8981\u306a\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001getBytes\u306e\u4f7f\u3044\u65b9\u3084String\u578b\u3068byte\u578b\u306e\u5909\u63db\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u305d\u3082\u305d\u3082byte\u578b [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":97255,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2344],"tags":[67],"class_list":["post-19650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java-study","tag-java"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/19650\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/19650\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-16T10:58:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:40:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_getbytes.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"810\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db\",\"datePublished\":\"2017-03-16T10:58:12+00:00\",\"dateModified\":\"2024-05-06T02:40:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650\"},\"wordCount\":142,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/java_getbytes.jpg\",\"keywords\":[\"Java\"],\"articleSection\":[\"Java\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650\",\"name\":\"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/java_getbytes.jpg\",\"datePublished\":\"2017-03-16T10:58:12+00:00\",\"dateModified\":\"2024-05-06T02:40:55+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/java_getbytes.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/03\\\/java_getbytes.jpg\",\"width\":810,\"height\":460},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/19650#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/19650","og_locale":"ja_JP","og_type":"article","og_title":"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/19650","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-03-16T10:58:12+00:00","article_modified_time":"2024-05-06T02:40:55+00:00","og_image":[{"width":810,"height":460,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_getbytes.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/19650#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/19650"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db","datePublished":"2017-03-16T10:58:12+00:00","dateModified":"2024-05-06T02:40:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/19650"},"wordCount":142,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/19650#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_getbytes.jpg","keywords":["Java"],"articleSection":["Java\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/19650","url":"https:\/\/www.sejuku.net\/blog\/19650","name":"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/19650#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/19650#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_getbytes.jpg","datePublished":"2017-03-16T10:58:12+00:00","dateModified":"2024-05-06T02:40:55+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/19650#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/19650"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/19650#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_getbytes.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/03\/java_getbytes.jpg","width":810,"height":460},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/19650#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Java\u306egetBytes\uff5c\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084Sting\u3068byte\u914d\u5217\u306e\u76f8\u4e92\u5909\u63db"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/19650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=19650"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/19650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/97255"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=19650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=19650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=19650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}