﻿{"id":2169,"date":"2016-02-21T20:24:26","date_gmt":"2016-02-21T11:24:26","guid":{"rendered":"http:\/\/yucchi.jp\/blog\/?p=2169"},"modified":"2016-02-21T20:25:24","modified_gmt":"2016-02-21T11:25:24","slug":"%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf%e9%80%9f%e5%ba%a6%e3%82%92%e3%82%b4%e3%83%8b%e3%83%a7%e3%82%b4%e3%83%8b%e3%83%a7%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"http:\/\/yucchi.jp\/blog\/?p=2169","title":{"rendered":"\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u901f\u5ea6\u3092\u30b4\u30cb\u30e7\u30b4\u30cb\u30e7\u3057\u3066\u307f\u305f\u3002"},"content":{"rendered":"<p>\u4eca\u3055\u3089\u3067\u3059\u304c Java \u306e\u5165\u51fa\u529b\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u901f\u5ea6\u3092\u6bd4\u8f03\u3092\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u307f\u305f\u3002<\/p>\n<p>Java \u306e\u5165\u51fa\u529b\u306e API \u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u308b\u3054\u3068\u306b\u5730\u5473\u306b\u4fbf\u5229\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u3053\u3093\u306a\u3067\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u30b9\u30bf\u30a4\u30eb\u304b\u3089\u30cf\u30a4\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306a\u3082\u306e\u307e\u3067\u9069\u5f53\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3060\u3051\uff08\u30d0\u30a4\u30c8\u5024\u3092\u5408\u8a08\u3059\u308b\u51e6\u7406\uff09\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u65e2\u306b\u826f\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u304c\u3001FileChannel \u3092\u4f7f\u3048\u3070 FileInputStream \u3084 BufferedInputStream \u3092\u4f7f\u3063\u305f\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u30b3\u30fc\u30c9\u3088\u308a\u9ad8\u901f\u306b\u8aad\u307f\u8fbc\u3081\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u3061\u3087\u3063\u3068\u6c17\u306b\u306a\u3063\u3066\u305f\u306e\u304c\u4e0b\u8a18\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>java.nio.file.Files \u306e <tt><font face=\"\u30e1\u30a4\u30ea\u30aa\">public static byte[] <b>readAllBytes<\/b>(Path path) throws IOException<\/font> <\/tt>\u3067\u3059\u3002<\/p>\n<p>\u975e\u5e38\u306b\u8208\u5473\u6df1\u3044\u7d50\u679c\u3092\u51fa\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u306f\u3001<b>readAllBytes<\/b>(Path path) \u306f\u5185\u90e8\u3067 java.nio.channels \u30d1\u30c3\u30b1\u30fc\u30b8\u306e SeekableByteChannel \u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3088\u3063\u3066\u3001java.nio.channels \u3092\u4f7f\u3046\u306e\u306b\u9069\u3057\u3066\u3044\u308b\u5927\u304d\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u9ad8\u901f\u306b\u51e6\u7406\u304c\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/yucchi.jp\/blog\/wp-content\/uploads\/2016\/02\/readAllBytes.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"readAllBytes\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"readAllBytes\" src=\"http:\/\/yucchi.jp\/blog\/wp-content\/uploads\/2016\/02\/readAllBytes_thumb.png\" width=\"657\" height=\"198\"><\/a><\/p>\n<p>\u4eca\u307e\u3067\u4f7f\u3063\u305f\u3053\u3068\u7121\u304b\u3063\u305f\u304b\u3089\u77e5\u3089\u306a\u304b\u3063\u305f\u3002(\uffe3\u25bd\uffe3;)<\/p>\n<p>\u3057\u304b\u3057\u3001API \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u300c\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u300d\u3068\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c 2 \u30ae\u30ac\u30d0\u30a4\u30c8\u3092\u8d85\u3048\u308b\u306a\u3069\u3057\u305f\u5834\u5408\u3001OutOfMemoryError \u304c\u6295\u3052\u3089\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u300c\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u3059\u3079\u3066\u306e\u30d0\u30a4\u30c8\u304c\u8aad\u307f\u53d6\u3089\u308c\u305f\u304b\u3001\u5165\u51fa\u529b\u30a8\u30e9\u30fc\u307e\u305f\u306f\u4ed6\u306e\u5b9f\u884c\u6642\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u305f\u3068\u304d\u306b\u5fc5\u305a\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30af\u30ed\u30fc\u30ba\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u300d\u3068\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3060\u304b\u3089\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u9069\u3055\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u5f53\u306f\u3053\u3093\u306a\u306b\u3044\u308d\u3044\u308d\u6bd4\u8f03\u3059\u308b\u3064\u3082\u308a\u3058\u3083\u306a\u304b\u3063\u305f\u306e\u3067\u3044\u3064\u3082\u4ee5\u4e0a\u306b\u9177\u3044\u3053\u3068\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u8aad\u307f\u8fbc\u307f\u7528\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u65b9\u6cd5\u3082\u300c\u3053\u308c\u306f\u30fb\u30fb\u30fb\u3042\u304b\u3093\u3084\u308d\u30fb\u30fb\u30fb\u300d\u3063\u3066\u307b\u3069\u975e\u52b9\u7387\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002(&gt;_&lt;\uff61)<\/p>\n<p>\u305d\u308c\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u5b9f\u884c\u7d50\u679c\u3092\u8cbc\u3063\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><pre title=\"FileChannelPerformanceTest.java\">\r\npackage jp.yucchi.filechannelperformancetest;\r\n\r\nimport java.io.BufferedInputStream;\r\nimport java.io.File;\r\nimport java.io.FileInputStream;\r\nimport java.io.FileOutputStream;\r\nimport java.io.IOException;\r\nimport java.nio.ByteBuffer;\r\nimport java.nio.MappedByteBuffer;\r\nimport java.nio.channels.FileChannel;\r\nimport java.nio.channels.FileLock;\r\nimport java.nio.channels.SeekableByteChannel;\r\nimport java.nio.file.Files;\r\nimport java.nio.file.Paths;\r\nimport java.nio.file.StandardOpenOption;\r\nimport static java.nio.file.StandardOpenOption.READ;\r\nimport java.util.EnumSet;\r\nimport java.util.logging.Level;\r\nimport java.util.logging.Logger;\r\n\r\n\/**\r\n *\r\n * @author Yucchi\r\n *\/\r\npublic class FileChannelPerformanceTest {\r\n\r\n    private static File file;\r\n\r\n    private static final boolean DEBUG = false;\r\n\r\n    private static final int REPEAT = 50;\r\n    private static long start;\r\n    private static long time;\r\n\r\n    public static void main(String[] args) {\r\n\r\n        System.out.println(\"\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb\");\r\n\r\n        \/\/ \u52b9\u7387\u306e\u60aa\u3044\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u51e6\u7406\r\n        preparation();\r\n\r\n        \/\/ \u30a6\u30a9\u30fc\u30df\u30f3\u30b0\u30a2\u30c3\u30d7\u3001\u51e6\u7406\u901f\u5ea6\u8a08\u6e2c\u51e6\u7406\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileInputStream();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileInputStream();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            bufferedInputStream();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        bufferedInputStream();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileChannelOpen();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileChannelOpen();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileChannelOpenDirectBuffer();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileChannelOpenDirectBuffer();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileChannelByteBuffer();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileChannelByteBuffer();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileChannelDirectByteBuffer();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileChannelDirectByteBuffer();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileChannelMappedByteBuffer();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileChannelMappedByteBuffer();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            fileChannelOpenMappedByteBuffer();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        fileChannelOpenMappedByteBuffer();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            seekableByteChannel();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        seekableByteChannel();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            seekableByteChannelDirectBuffer();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        seekableByteChannelDirectBuffer();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        for (int i = 0; i < REPEAT; i++) {\r\n            filesReadAllBytes();\r\n        }\r\n\r\n        start = System.nanoTime();\r\n        filesReadAllBytes();\r\n        time = System.nanoTime() - start;\r\n        System.out.println(System.lineSeparator() + \"(\u25cb\uff65\u03c9\uff65)\uff89-------------  FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u3001\"\r\n                + (int) (time * 1e-9) \/ 3_600 + \"\u6642\u9593\"\r\n                + (int) ((time * 1e-9) \/ 60) % 60 + \"\u5206\"\r\n                + (int) (time * 1e-9 % 60) + \"\u79d2\"\r\n                + Double.toString((time * 1e-9 % 60) % 1).substring(2) + \"  ------------ )\" + System.lineSeparator());\r\n\r\n        \/\/ \u304a\u6383\u9664\r\n        file.deleteOnExit();\r\n\r\n        System.out.println(\"\u30c6\u30b9\u30c8\u7d42\u4e86\uff01\");\r\n\r\n    }\r\n\r\n    private static void preparation() {\r\n\r\n        try {\r\n            file = File.createTempFile(\"temp\", \".txt\");\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n        System.out.println(\"\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 \" + Paths.get(file.getAbsolutePath()) + \" \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002\");\r\n\r\n        String content = \"JAVA + YOU, DOWNLOAD TODAY!  JAVA + YOU, DOWNLOAD TODAY!  JAVA + YOU, DOWNLOAD TODAY!\" + System.lineSeparator();\r\n\r\n        try (FileChannel fileChannel = new FileOutputStream(file.getAbsolutePath()).getChannel();\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, false)) {\r\n\r\n            long currentPosition = 0L;\r\n            byte[] bytes = content.getBytes();\r\n\r\n            while (file.length() < 512 * 1_024 * 1024) {\r\n                ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);\r\n                currentPosition += fileChannel.write(byteBuffer, currentPosition);\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n        System.out.println(\"\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u3001\" + file.length() + \" \u30d0\u30a4\u30c8\u3067\u3059\u3002\" + System.lineSeparator());\r\n\r\n    }\r\n\r\n    private static void fileInputStream() {\r\n\r\n        try (FileInputStream fis = new FileInputStream(file.getAbsolutePath())) {\r\n\r\n            final int SIZE = 8 * 1_024;\r\n            byte[] byteArray = new byte[SIZE];\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = fis.read(byteArray, 0, SIZE)) != -1) {\r\n                for (int i = 0; i < readPosition; i++) {\r\n                    sum += byteArray[i];\r\n                }\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void bufferedInputStream() {\r\n\r\n        try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file.getAbsolutePath()))) {\r\n\r\n            final int SIZE = 8 * 1_024;\r\n            byte[] byteArray = new byte[SIZE];\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = bis.read(byteArray, 0, SIZE)) != -1) {\r\n                for (int i = 0; i < readPosition; i++) {\r\n                    sum += byteArray[i];\r\n                }\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void fileChannelOpen() {\r\n\r\n        try (FileChannel fileChannel = FileChannel.open(Paths.get(file.getAbsolutePath()), StandardOpenOption.READ);\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, true)) {\r\n\r\n            final int CAPACITY = 1_000 * 1_024;\r\n\r\n            ByteBuffer byteBuffer = ByteBuffer.allocate(CAPACITY);\r\n\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = fileChannel.read(byteBuffer)) != -1) {\r\n\r\n                if (readPosition == 0) {\r\n                    continue;\r\n                }\r\n\r\n                byteBuffer.flip();\r\n\r\n                while (byteBuffer.hasRemaining()) {\r\n                    sum += byteBuffer.get();\r\n                }\r\n\r\n                byteBuffer.clear();\r\n\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void fileChannelOpenDirectBuffer() {\r\n\r\n        try (FileChannel fileChannel = FileChannel.open(Paths.get(file.getAbsolutePath()), StandardOpenOption.READ);\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, true)) {\r\n\r\n            final int CAPACITY = 1_000 * 1_024;\r\n\r\n            ByteBuffer byteBuffer = ByteBuffer.allocateDirect(CAPACITY);\r\n\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = fileChannel.read(byteBuffer)) != -1) {\r\n\r\n                if (readPosition == 0) {\r\n                    continue;\r\n                }\r\n\r\n                byteBuffer.flip();\r\n\r\n                while (byteBuffer.hasRemaining()) {\r\n                    sum += byteBuffer.get();\r\n                }\r\n\r\n                byteBuffer.clear();\r\n\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void fileChannelByteBuffer() {\r\n\r\n        try (FileChannel fileChannel = new FileInputStream(file.getAbsolutePath()).getChannel();\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, true)) {\r\n\r\n            final int CAPACITY = 1_000 * 1_024;\r\n\r\n            ByteBuffer byteBuffer = ByteBuffer.allocate(CAPACITY);\r\n\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = fileChannel.read(byteBuffer)) != -1) {\r\n\r\n                if (readPosition == 0) {\r\n                    continue;\r\n                }\r\n\r\n                byteBuffer.flip();\r\n\r\n                while (byteBuffer.hasRemaining()) {\r\n                    sum += byteBuffer.get();\r\n                }\r\n\r\n                byteBuffer.clear();\r\n\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void fileChannelDirectByteBuffer() {\r\n\r\n        try (FileChannel fileChannel = new FileInputStream(file.getAbsolutePath()).getChannel();\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, true)) {\r\n\r\n            final int CAPACITY = 1_000 * 1_024;\r\n\r\n            ByteBuffer byteBuffer = ByteBuffer.allocateDirect(CAPACITY);\r\n\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = fileChannel.read(byteBuffer)) != -1) {\r\n\r\n                if (readPosition == 0) {\r\n                    continue;\r\n                }\r\n\r\n                byteBuffer.flip();\r\n\r\n                while (byteBuffer.hasRemaining()) {\r\n                    sum += byteBuffer.get();\r\n                }\r\n\r\n                byteBuffer.clear();\r\n\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void fileChannelMappedByteBuffer() {\r\n\r\n        try (FileChannel fileChannel = new FileInputStream(file.getAbsolutePath()).getChannel();\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, true)) {\r\n\r\n            MappedByteBuffer mappedByteBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size());\r\n\r\n            long sum = 0L;\r\n\r\n            while (mappedByteBuffer.hasRemaining()) {\r\n                sum += mappedByteBuffer.get();\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void fileChannelOpenMappedByteBuffer() {\r\n\r\n        try (FileChannel fileChannel = FileChannel.open(Paths.get(file.getAbsolutePath()), StandardOpenOption.READ);\r\n                FileLock lock = fileChannel.lock(0, Long.MAX_VALUE, true)) {\r\n\r\n            MappedByteBuffer mappedByteBuffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fileChannel.size());\r\n\r\n            long sum = 0L;\r\n\r\n            while (mappedByteBuffer.hasRemaining()) {\r\n                sum += mappedByteBuffer.get();\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void seekableByteChannel() {\r\n        \/\/ FileChannel \u306b\u3042\u3048\u3066\u30ad\u30e3\u30b9\u30c8\u3057\u306a\u3044\u3067\u307f\u305f\u3002\r\n        try (SeekableByteChannel seekableByteChannel = Files.newByteChannel(Paths.get(file.getAbsolutePath()), EnumSet.of(READ))) {\r\n\r\n            final int CAPACITY = 1_000 * 1_024;\r\n\r\n            ByteBuffer byteBuffer = ByteBuffer.allocate(CAPACITY);\r\n\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = seekableByteChannel.read(byteBuffer)) != -1) {\r\n\r\n                if (readPosition == 0) {\r\n                    continue;\r\n                }\r\n\r\n                byteBuffer.flip();\r\n\r\n                while (byteBuffer.hasRemaining()) {\r\n                    sum += byteBuffer.get();\r\n                }\r\n\r\n                byteBuffer.clear();\r\n\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n    }\r\n\r\n    private static void seekableByteChannelDirectBuffer() {\r\n        \/\/ FileChannel \u306b\u3042\u3048\u3066\u30ad\u30e3\u30b9\u30c8\u3057\u306a\u3044\u3067\u307f\u305f\u3002\r\n        try (SeekableByteChannel seekableByteChannel = Files.newByteChannel(Paths.get(file.getAbsolutePath()), EnumSet.of(READ))) {\r\n\r\n            final int CAPACITY = 1_000 * 1_024;\r\n\r\n            ByteBuffer byteBuffer = ByteBuffer.allocateDirect(CAPACITY);\r\n\r\n            int readPosition;\r\n            long sum = 0L;\r\n\r\n            while ((readPosition = seekableByteChannel.read(byteBuffer)) != -1) {\r\n\r\n                if (readPosition == 0) {\r\n                    continue;\r\n                }\r\n\r\n                byteBuffer.flip();\r\n\r\n                while (byteBuffer.hasRemaining()) {\r\n                    sum += byteBuffer.get();\r\n                }\r\n\r\n                byteBuffer.clear();\r\n\r\n            }\r\n\r\n            if (DEBUG) {\r\n                System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n            }\r\n\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n    }\r\n\r\n    private static void filesReadAllBytes() {\r\n\r\n        long sum = 0L;\r\n\r\n        byte[] byteArray = null;\r\n\r\n        try {\r\n            byteArray = Files.readAllBytes(Paths.get(file.getAbsolutePath()));\r\n        } catch (IOException ex) {\r\n            Logger.getLogger(FileChannelPerformanceTest.class.getName()).log(Level.SEVERE, null, ex);\r\n        }\r\n\r\n        for (int i = 0; i < byteArray.length; i++) {\r\n            sum += byteArray[i];\r\n        }\r\n\r\n        if (DEBUG) {\r\n            System.out.println(\"\u30d0\u30a4\u30c8\u914d\u5217\u306e\u8981\u7d20\u306e\u5024\u306e\u5408\u8a08\u306f\u3001\" + sum + \" \u3067\u3059\u3002\" + System.lineSeparator());\r\n        }\r\n\r\n    }\r\n\r\n}\r\n\r\n\r\n<\/pre>\n<\/p>\n<p><strong><font size=\"4\">\u7d04\uff12\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp5030517990935223178.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u30012097222 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d20018270110000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d20016099900000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2001935356&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2001790015&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2001790015&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2001814459&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2001435249&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d200122087&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d20017662320000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d20018725950000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d20010583510000000001&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff18\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp8676206647067718269.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u30018388627 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d200741639&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2007126697&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d20057324080000000005&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2005674932000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2005462535&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2005980479&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2005093565&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2004786035&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2006010209000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2005818622000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2004599734&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff11\uff16\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp4534373118077736467.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u300116777254 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2014226638000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2014306246000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2010903929000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2010355595&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2011318484&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2010636368&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2009792727000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2009329945000000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d201143806&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2011517998000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2010098274&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff13\uff12\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp551612105990559011.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u300133554508 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2030031225&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2030403168&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2022357514000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2022399466&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2021978635&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2023581027&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2020720769&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2019682567&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2021659545000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2023247402&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2024589501000000003&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff16\uff14\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp2044166890552158221.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u300167108929 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2057892566000000006&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2058601767000000006&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2043844631&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2042067168&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2041638081&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2046523542&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2040943413000000005&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2038577977&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2042847058&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2045195318000000005&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2039039437&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff11\uff12\uff18\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp7188302575166935320.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u3001134217771 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d211521400400000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d211788168500000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d208361375&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d208419346400000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2082537891&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2090252891&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2080295004&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2075165433&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2086926218&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2090565376&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d210305452100000001&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff12\uff15\uff16\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp2576486197093097661.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u3001268435542 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2222832253&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d222093158100000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d215506372000000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d215883765&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d215490747900000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d216721791900000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d216354870200000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2147236411&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2166499799&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d217514531700000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d219809278700000002&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff15\uff11\uff12\u30e1\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp8990442498363311781.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u3001536870997 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d248024426600000003&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d246190115600000003&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2322018374&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2347179662&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2338599217&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2361760405&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2330729955&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2299515847&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d233603955100000005&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2351710028&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d238764014300000005&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff11\u30ae\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp4417221917340211970.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u30011048576026 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2851719442&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d28790631670000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d26286216090000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d262141002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d26036760210000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d26924091010000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d26346080350000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d2583061946&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d26516133420000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d26945191980000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52060\u79d274813046&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><strong><font size=\"4\">\u7d04\uff12\u30ae\u30ac\u30d0\u30a4\u30c8<\/font><\/strong><\/p>\n<p>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u958b\u59cb<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092 C:\\Users\\Yucchi\\AppData\\Local\\Temp\\temp4971076785814883678.txt \u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u30c6\u30b9\u30c8\u7528\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u30012097152052 \u30d0\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d28658922370000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; BufferedInputStream \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d28456471320000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpen \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d23322223500000001&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelOpenDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d225010529000000004&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; fileChannelByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d221910027500000018&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelDirectByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d231621626700000016&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d221824110800000018&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FileChannelOpenMappedByteBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d2150197747&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannel \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d25578260060000002&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; SeekableByteChannelDirectBuffer \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d235429876100000013&nbsp; ------------ )<\/p>\n<p>(\u25cb\uff65\u03c9\uff65)\uff89-------------&nbsp; FilesReadAllBytes \u306e\u8aad\u307f\u8fbc\u307f\u6642\u9593\u306f\u30010\u6642\u95930\u52061\u79d21966073290000001&nbsp; ------------ )<\/p>\n<p>\u30c6\u30b9\u30c8\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u3060\u3044\u305f\u3044\u60f3\u50cf\u3057\u3066\u3044\u305f\u3068\u304a\u308a\u306e\u7d50\u679c\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><font color=\"#ff0000\">java.nio.channels.FileChannel \u30af\u30e9\u30b9\u306e public static FileChannel open(Path path, OpenOption... options) throws IOException \u3092\u4f7f\u3063\u3066<\/font><\/p>\n<p><font color=\"#ff0000\">\u30d5\u30a1\u30a4\u30eb\u30fb\u30c1\u30e3\u30cd\u30eb\u3092\u53d6\u5f97\u3057\u3066 java.nio.MappedByteBuffer \u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u8aad\u307f\u8fbc\u3080\u306e\u304c\u6700\u901f\u306e\u3088\u3046\u3067\u3059\u3002<\/font><\/p>\n<p>\u305f\u3060\u3057\u3001java.nio.ByteBuffer \u30af\u30e9\u30b9\u3092\u4f7f\u3046\u51e6\u7406\u3067\u306f byte\u30d0\u30c3\u30d5\u30a1\u306e capacity(\u5bb9\u91cf)\u3092\u3069\u308c\u304f\u3089\u3044\u306b\u8a2d\u5b9a\u3057\u3066\u826f\u3044\u306e\u304b\u89e3\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u9069\u5f53\u306b\u3084\u3063\u305f\u306e\u3067\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u3067\u5c11\u3057\u3070\u304b\u308a\u8abf\u3079\u305f\u3051\u3069\u300c\u3053\u308c\u304c BEST!\u300d\u3063\u3066\u306e\u306f\u898b\u5f53\u305f\u3089\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u4eca\u3001\u30d6\u30ed\u30b0\u3092\u66f8\u304d\u7d42\u308f\u308d\u3046\u3068\u3057\u3066\u3044\u308b\u3093\u3060\u3051\u3069\u30fb\u30fb\u30fb<\/p>\n<p>\u4f55\u6545\u3001\u3053\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u30b4\u30cb\u30e7\u30b4\u30cb\u30e7\u3057\u3088\u3046\u3068\u601d\u3044\u7acb\u3063\u305f\u304b\u601d\u3044\u51fa\u305b\u305a\u306b\u30e2\u30e4\u30e2\u30e4\u3057\u3066\u3044\u308b\u3002<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cdf4916b-8763-4919-8bc4-d05d2b7fceeb\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">Hatena \u30bf\u30b0: <a href=\"http:\/\/b.hatena.ne.jp\/t\/Java\" rel=\"tag\">Java<\/a><\/div>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_hatena\"><a href='\/\/b.hatena.ne.jp\/add?mode=confirm&url=http%3A%2F%2Fyucchi.jp%2Fblog%2F%3Fp%3D2169&title=%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E9%80%9F%E5%BA%A6%E3%82%92%E3%82%B4%E3%83%8B%E3%83%A7%E3%82%B4%E3%83%8B%E3%83%A7%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F%E3%80%82' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='http:\/\/yucchi.jp\/blog\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/hatena.gif' alt='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' width='16' height='12' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_facebook\"><a href='http:\/\/www.facebook.com\/share.php?u=http%3A%2F%2Fyucchi.jp%2Fblog%2F%3Fp%3D2169&t=%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E9%80%9F%E5%BA%A6%E3%82%92%E3%82%B4%E3%83%8B%E3%83%A7%E3%82%B4%E3%83%8B%E3%83%A7%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F%E3%80%82' title='Facebook \u306b\u30b7\u30a7\u30a2' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='http:\/\/yucchi.jp\/blog\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/facebook.png' alt='Facebook \u306b\u30b7\u30a7\u30a2' title='Facebook \u306b\u30b7\u30a7\u30a2' width='16' height='16' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"http:\/\/yucchi.jp\/blog\/?p=2169\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/yucchi.jp\/blog\/?p=2169\" data-text=\"\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u901f\u5ea6\u3092\u30b4\u30cb\u30e7\u30b4\u30cb\u30e7\u3057\u3066\u307f\u305f\u3002\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u3055\u3089\u3067\u3059\u304c Java \u306e\u5165\u51fa\u529b\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u901f\u5ea6\u3092\u6bd4\u8f03\u3092\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d44\u3093\u3067\u307f\u305f\u3002 Java \u306e\u5165\u51fa\u529b\u306e API \u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u308b\u3054\u3068\u306b\u5730\u5473\u306b\u4fbf\u5229\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002 \u305d\u3093\u306a\u3053\u3093\u306a\u3067\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u30b9\u30bf\u30a4\u30eb\u304b\u3089\u30cf\u30a4\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306a\u3082\u306e\u307e\u3067\u9069\u5f53\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u3068\u308a\u3042\u3048\u305a\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3060\u3051\uff08\u30d0\u30a4\u30c8\u5024\u3092\u5408\u8a08\u3059\u308b\u51e6\u7406\uff09\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3068\u3057\u307e\u3057\u305f\u3002 \u65e2\u306b\u826f\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u304c\u3001FileChannel \u3092\u4f7f\u3048\u3070 FileInputStream \u3084 BufferedInputStream \u3092\u4f7f\u3063\u305f\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u30b3\u30fc\u30c9\u3088\u308a\u9ad8\u901f\u306b\u8aad\u307f\u8fbc\u3081\u307e\u3059\u3002 \u4eca\u56de\u3061\u3087\u3063\u3068\u6c17\u306b\u306a\u3063\u3066\u305f\u306e\u304c\u4e0b\u8a18\u306e\u3082\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17],"class_list":["post-2169","post","type-post","status-publish","format-standard","hentry","category-java","tag-java"],"_links":{"self":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2169"}],"version-history":[{"count":2,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2169\/revisions"}],"predecessor-version":[{"id":2172,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2169\/revisions\/2172"}],"wp:attachment":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2169"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}