{"id":551,"date":"2012-11-11T19:34:51","date_gmt":"2012-11-11T19:34:51","guid":{"rendered":"http:\/\/ilias-laptop\/examples\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/"},"modified":"2019-03-19T13:43:28","modified_gmt":"2019-03-19T11:43:28","slug":"save-changes-to-memory-mapped-bytebuffer-from-filechannel","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/","title":{"rendered":"Save changes to memory mapped ByteBuffer from FileChannel"},"content":{"rendered":"<p>In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of data using Java NIO Channels implies that you should :<\/p>\n<ul>\n<li>Create a <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/io\/File.html\" target=\"_blank\" rel=\"noopener noreferrer\">File<\/a> object to encapsulate an actual file in the file system<\/li>\n<li>Create a random access file stream (read-write). To do so you must first create a <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/io\/RandomAccessFile.html\" target=\"_blank\" rel=\"noopener noreferrer\">RandomAccessFile<\/a> object to encapsulate the file object created above and open it for read\/write operations. Then use the <code>getChannel()<\/code> API method of the RandomAccessFile object to get the file channel to read\/write data from\/to<\/li>\n<li>Map a region of this channel&#8217;s file directly into memory by using the <code>map(<a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/nio\/channels\/FileChannel.MapMode.html\" target=\"_blank\" rel=\"noopener noreferrer\">MapMode<\/a>,int,int)<\/code> API method of the <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/nio\/channels\/FileChannel.html\" target=\"_blank\" rel=\"noopener noreferrer\">FileChannel<\/a> class. This method returns a handle to a <a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/nio\/MappedByteBuffer.html\" target=\"_blank\" rel=\"noopener noreferrer\">MappedByteBuffer<\/a> class for reading\/writing data<\/li>\n<li>Write data into this buffer at the current position using the <code>put(byte)<\/code> API method of the MappedByteBuffer class. Do not forget to <code>force()<\/code> any changes made to this buffer&#8217;s contents so as to be written to the storage device containing the mapped file<\/li>\n<\/ul>\n<p>as described in the code snippet below.<\/p>\n<p>&nbsp;<br \/>\nDo not forget to close the channel after you are done processing the file so as to release operating system resources.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div>[ulp id=&#8217;lQeyBcYaL5DqTMXI&#8217;]<\/p>\n<pre class=\"brush:java\">package com.javacodegeeks.snippets.core;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.RandomAccessFile;\nimport java.nio.MappedByteBuffer;\nimport java.nio.channels.FileChannel;\n\npublic class SaveChangesToMemoryMappedByteBufferFromFileChannel {\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tFile file = new File(\"myfile.dat\");\n\t\t\t\n\t\t\t\/\/ create a random access file stream (read-write)\n\t\t    FileChannel channel = new RandomAccessFile(file, \"rw\").getChannel();\n\t\t    \n\t\t    \/\/ map a region of this channel's file directly into memory\n\t\t    MappedByteBuffer buf = channel.map(FileChannel.MapMode.READ_WRITE, 0, (int) channel.size());\n\n\t\t    \/\/ write the given byte into this buffer at the current\n\t\t    \/\/ position, and then increment the position\n\t\t    buf.put((byte)0x01);\n\n\t\t    \/\/ force any changes made to this buffer's content to be written\n\t\t    \/\/ to the storage device containing the mapped file\n\t\t    buf.force();\n\n\t\t    \/\/ close the channel\n\t\t    channel.close();\n\t\t    \n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"I\/O Error: \" + e.getMessage());\n\t\t}\n\t\t\n\t}\n\n}\n<\/pre>\n<p>This was an example of how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of data using Java NIO Channels implies that you should : Create a File object to encapsulate an actual file in the file system Create a &hellip;<\/p>\n","protected":false},"author":6,"featured_media":1204,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[189,201,1043],"class_list":["post-551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-filechannel","tag-core-java-2","tag-filechannel-2","tag-nio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Save changes to memory mapped ByteBuffer from FileChannel - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Save changes to memory mapped ByteBuffer from FileChannel - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-11T19:34:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-19T11:43:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Byron Kiourtzoglou\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Byron Kiourtzoglou\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/\"},\"author\":{\"name\":\"Byron Kiourtzoglou\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/3b111ec1048740c68c9e709ff6240015\"},\"headline\":\"Save changes to memory mapped ByteBuffer from FileChannel\",\"datePublished\":\"2012-11-11T19:34:51+00:00\",\"dateModified\":\"2019-03-19T11:43:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/\"},\"wordCount\":242,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/java-logo.jpg\",\"keywords\":[\"core java\",\"filechannel\",\"nio\"],\"articleSection\":[\"FileChannel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/\",\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/\",\"name\":\"Save changes to memory mapped ByteBuffer from FileChannel - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/java-logo.jpg\",\"datePublished\":\"2012-11-11T19:34:51+00:00\",\"dateModified\":\"2019-03-19T11:43:28+00:00\",\"description\":\"In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/12\\\/java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"Bipartite Graph\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/category\\\/java-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Core Java\",\"item\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/category\\\/java-development\\\/core-java\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"nio\",\"item\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/category\\\/java-development\\\/core-java\\\/nio\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"FileChannel\",\"item\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/category\\\/java-development\\\/core-java\\\/nio\\\/filechannel\\\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"Save changes to memory mapped ByteBuffer from FileChannel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/3b111ec1048740c68c9e709ff6240015\",\"name\":\"Byron Kiourtzoglou\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Byron-Kiourtzoglou-96x96.jpg\",\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Byron-Kiourtzoglou-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2013\\\/10\\\/Byron-Kiourtzoglou-96x96.jpg\",\"caption\":\"Byron Kiourtzoglou\"},\"description\":\"Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications\\\/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.\",\"sameAs\":[\"https:\\\/\\\/www.pivotalgamers.com\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/byron-kiourtzoglou-530ab222\"],\"url\":\"https:\\\/\\\/examples.javacodegeeks.com\\\/author\\\/byron-kiourtzoglou\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Save changes to memory mapped ByteBuffer from FileChannel - Java Code Geeks","description":"In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of","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:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/","og_locale":"en_US","og_type":"article","og_title":"Save changes to memory mapped ByteBuffer from FileChannel - Java Code Geeks","og_description":"In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of","og_url":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2012-11-11T19:34:51+00:00","article_modified_time":"2019-03-19T11:43:28+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","type":"image\/jpeg"}],"author":"Byron Kiourtzoglou","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Byron Kiourtzoglou","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/"},"author":{"name":"Byron Kiourtzoglou","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/3b111ec1048740c68c9e709ff6240015"},"headline":"Save changes to memory mapped ByteBuffer from FileChannel","datePublished":"2012-11-11T19:34:51+00:00","dateModified":"2019-03-19T11:43:28+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/"},"wordCount":242,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","keywords":["core java","filechannel","nio"],"articleSection":["FileChannel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/","url":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/","name":"Save changes to memory mapped ByteBuffer from FileChannel - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","datePublished":"2012-11-11T19:34:51+00:00","dateModified":"2019-03-19T11:43:28+00:00","description":"In this example we shall show you how to write data to a file using a memory mapped ByteBuffer and a NIO FileChannel in Java. Doing reads and writes of","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","width":150,"height":150,"caption":"Bipartite Graph"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/java-development\/core-java\/nio\/filechannel\/save-changes-to-memory-mapped-bytebuffer-from-filechannel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Core Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/"},{"@type":"ListItem","position":4,"name":"nio","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/nio\/"},{"@type":"ListItem","position":5,"name":"FileChannel","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/nio\/filechannel\/"},{"@type":"ListItem","position":6,"name":"Save changes to memory mapped ByteBuffer from FileChannel"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/3b111ec1048740c68c9e709ff6240015","name":"Byron Kiourtzoglou","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2013\/10\/Byron-Kiourtzoglou-96x96.jpg","caption":"Byron Kiourtzoglou"},"description":"Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications\/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.","sameAs":["https:\/\/www.pivotalgamers.com\/","https:\/\/www.linkedin.com\/in\/byron-kiourtzoglou-530ab222"],"url":"https:\/\/examples.javacodegeeks.com\/author\/byron-kiourtzoglou\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=551"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}