{"id":25524006,"date":"2022-05-21T17:25:30","date_gmt":"2022-05-21T11:55:30","guid":{"rendered":"https:\/\/entri.app\/blog\/?p=25524006"},"modified":"2022-11-20T06:41:50","modified_gmt":"2022-11-20T01:11:50","slug":"understanding-byte-streams-and-character-streams-in-java","status":"publish","type":"post","link":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/","title":{"rendered":"Understanding Byte Streams and Character Streams in Java"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e9d8fb622b1\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e9d8fb622b1\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#Byte_Streams\" >Byte Streams<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#Character_Streams\" >Character Streams<\/a><\/li><\/ul><\/nav><\/div>\n<p>A\u00a0stream\u00a0is a sequence of data.\u00a0I\/O Stream\u00a0refers to a stream that is unlikely a method to sequentially access a file. I\/O Stream means an input source or output destination representing different types of sources e.g. disk files. The java.io package provides classes that allow you to convert between Unicode character streams and byte streams of non-Unicode text. Following are the two kinds of streams you should know:<\/p>\n<ul>\n<li><strong>Input Stream:<\/strong>\u00a0reads data from the source.<\/li>\n<li><strong>Output Stream:<\/strong>\u00a0writes data to a destination.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Byte_Streams\"><\/span><strong>Byte Streams<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Java byte streams are used to perform input and output of 8-bit bytes. Though there are many classes related to byte streams but the most frequently used classes are,\u00a0FileInputStream\u00a0and\u00a0FileOutputStream.<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\">Learn Coding in your Language! Enroll Here!<\/a><\/strong><\/p>\n<h3><strong>Example of Byte Stream Classes in Java<\/strong><\/h3>\n<p>\/\/ Java Program Illustrate ByteStream Class to<br \/>\n\/\/ Copy Contents of One File to Another File<\/p>\n<p>\/\/ Importing required classes<br \/>\nimport java.io.*;<\/p>\n<p>\/\/ Main class<br \/>\npublic class GFG {<\/p>\n<p>\/\/ Main driver method<br \/>\npublic static void main(String[] args)<br \/>\nthrows IOException<br \/>\n{<\/p>\n<p>\/\/ Initially assigning null ot objects for<br \/>\n\/\/ reading and writing to file<br \/>\nFileInputStream sourceStream = null;<br \/>\nFileOutputStream targetStream = null;<\/p>\n<p>\/\/ Try block to check for exceptions<br \/>\ntry {<\/p>\n<p>\/\/ Passing the files via lcoal directory<br \/>\nsourceStream = new FileInputStream(<br \/>\n&#8220;\/Users\/mayanksolanki\/Desktop\/demo.rtf&#8221;);<br \/>\ntargetStream = new FileOutputStream(<br \/>\n&#8220;\/Users\/mayanksolanki\/Desktop\/democopy.rtf&#8221;);<\/p>\n<p>\/\/ Reading source file and writing content to<br \/>\n\/\/ target file byte by byte<br \/>\nint temp;<\/p>\n<p>\/\/ If there is content inside file<br \/>\n\/\/ than read<br \/>\nwhile ((temp = sourceStream.read()) != -1)<br \/>\ntargetStream.write((byte)temp);<\/p>\n<p>\/\/ Display message for successfu execution of program<br \/>\nSystem.out.print(&#8220;Program successfully executed&#8221;);<br \/>\n}<\/p>\n<p>\/\/ finally block that executes for sure<br \/>\n\/\/ where we are closing file connections<br \/>\n\/\/ to avoid memory leakage<br \/>\nfinally {<\/p>\n<p>if (sourceStream != null)<br \/>\nsourceStream.close();<\/p>\n<p>if (targetStream != null)<br \/>\ntargetStream.close();<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><strong>Learn to code from industry experts! Enroll here<\/strong><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Character_Streams\"><\/span><strong>Character Streams<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In Java, characters are stored using\u00a0Unicode conventions. Java\u00a0Byte\u00a0streams are used to perform input and output of 8-bit bytes, whereas Java\u00a0Character\u00a0streams are used to perform input and output for 16-bit Unicode. Though there are many classes related to character streams but the most frequently used classes are,\u00a0FileReader\u00a0and\u00a0FileWriter.<\/p>\n<h3><strong>Example of Character Stream Classes in Java<\/strong><\/h3>\n<p>\/\/ Java Program illustrate Reading<br \/>\n\/\/ a File in Human Readable<br \/>\n\/\/ Format Using FileReader Class<\/p>\n<p>\/\/ Importing required classes<br \/>\nimport java.io.*;<\/p>\n<p>\/\/ Main class<br \/>\npublic class GFG {<\/p>\n<p>\/\/ Main driver method<br \/>\npublic static void main(String[] args)<br \/>\nthrows IOException<br \/>\n{<\/p>\n<p>\/\/ Initially assiging null as we have not read<br \/>\n\/\/ anything<br \/>\nFileReader sourceStream = null;<\/p>\n<p>\/\/ Try block to check for exceptions<br \/>\ntry {<\/p>\n<p>\/\/ Reading from file<br \/>\nsourceStream = new FileReader(<br \/>\n&#8220;\/Users\/mayanksolanki\/Desktop\/demo.rtf&#8221;);<\/p>\n<p>\/\/ Reading sourcefile and writing content to<br \/>\n\/\/ target file character by character.<\/p>\n<p>int temp;<\/p>\n<p>\/\/ If there is content inside file<br \/>\n\/\/ than read<br \/>\nwhile ((temp = sourceStream.read()) != -1)<br \/>\nSystem.out.println((char)temp);<\/p>\n<p>\/\/ Display message for successfu execution of program<br \/>\nSystem.out.print(&#8220;Program successfully executed&#8221;);<br \/>\n}<\/p>\n<p>\/\/ finally block that executes for sure<br \/>\n\/\/ where we are closing file connections<br \/>\n\/\/ to avoid memory leakage<br \/>\nfinally {<\/p>\n<p>\/\/ Closing stream as no longer in use<br \/>\nif (sourceStream != null)<br \/>\nsourceStream.close();<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<h4><strong>When to use Character Stream over Byte Stream?<\/strong><\/h4>\n<p>In Java, characters are stored using Unicode conventions. Character stream is useful when we want to process text files. These text files can be processed character by character. Character size is typically 16 bits.<\/p>\n<div id=\"GFG_AD_gfg_mobile_336x280\">\n<h4><strong>When to use Byte\u00a0Stream over Character Stream?\u00a0\u00a0<\/strong><\/h4>\n<p>Byte oriented reads byte by byte. A byte stream is suitable for processing the raw data like binary files.<\/p>\n<\/div>\n<p style=\"text-align: center;\"><a href=\"https:\/\/bit.ly\/3ELmCiA\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-25522670 size-full\" src=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png\" alt=\"Python and Machine Learning Rectangle\" width=\"970\" height=\"250\" srcset=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1.png 970w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-300x77.png 300w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-768x198.png 768w, https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/04\/Python-and-Machine-Learning-Rectangle-1-750x193.png 750w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p>A Java stream acts as a file handling wrapper that operates according to the corresponding I\/O constructs. In many cases, character-oriented stream classes and byte-oriented stream classes function in a very similar fashion. But it also does not mean they are the same.<\/p>\n<p>Entri provides video classes as well on various important topics by the excellent faculties. One will get revision modules, monthly tests based on the classes. Entri provides an excellent platform with full-length mock tests including previous year question papers. It also gives you access to clarify your doubts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A\u00a0stream\u00a0is a sequence of data.\u00a0I\/O Stream\u00a0refers to a stream that is unlikely a method to sequentially access a file. I\/O Stream means an input source or output destination representing different types of sources e.g. disk files. The java.io package provides classes that allow you to convert between Unicode character streams and byte streams of non-Unicode [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":25524009,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[802,1864,1865,1882,1883],"tags":[],"class_list":["post-25524006","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-data-science-ml","category-digital-marketing","category-java-programming","category-react-native"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Understanding Byte Streams and Character Streams in Java - Entri Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Byte Streams and Character Streams in Java - Entri Blog\" \/>\n<meta property=\"og:description\" content=\"A\u00a0stream\u00a0is a sequence of data.\u00a0I\/O Stream\u00a0refers to a stream that is unlikely a method to sequentially access a file. I\/O Stream means an input source or output destination representing different types of sources e.g. disk files. The java.io package provides classes that allow you to convert between Unicode character streams and byte streams of non-Unicode [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/entri.me\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-21T11:55:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-20T01:11:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"820\" \/>\n\t<meta property=\"og:image:height\" content=\"615\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Shibani Ghosh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@entri_app\" \/>\n<meta name=\"twitter:site\" content=\"@entri_app\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shibani Ghosh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\"},\"author\":{\"name\":\"Shibani Ghosh\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/2cfbd0a262fb36f55cb1d95bfc5944b5\"},\"headline\":\"Understanding Byte Streams and Character Streams in Java\",\"datePublished\":\"2022-05-21T11:55:30+00:00\",\"dateModified\":\"2022-11-20T01:11:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\"},\"wordCount\":666,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png\",\"articleSection\":[\"Articles\",\"Data Science and Machine Learning\",\"Digital Marketing\",\"Java Programming\",\"React Native\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\",\"url\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\",\"name\":\"Understanding Byte Streams and Character Streams in Java - Entri Blog\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png\",\"datePublished\":\"2022-05-21T11:55:30+00:00\",\"dateModified\":\"2022-11-20T01:11:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png\",\"width\":820,\"height\":615},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Entri Skilling\",\"item\":\"https:\/\/entri.app\/blog\/category\/entri-skilling\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Java Programming\",\"item\":\"https:\/\/entri.app\/blog\/category\/entri-skilling\/java-programming\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Understanding Byte Streams and Character Streams in Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/blog\/#website\",\"url\":\"https:\/\/entri.app\/blog\/\",\"name\":\"Entri Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/blog\/#organization\",\"name\":\"Entri App\",\"url\":\"https:\/\/entri.app\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"contentUrl\":\"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png\",\"width\":989,\"height\":446,\"caption\":\"Entri App\"},\"image\":{\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/entri.me\/\",\"https:\/\/x.com\/entri_app\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/entri.app\/blog\/#\/schema\/person\/2cfbd0a262fb36f55cb1d95bfc5944b5\",\"name\":\"Shibani Ghosh\",\"description\":\"Pouring out my thoughts through words!\",\"url\":\"https:\/\/entri.app\/blog\/author\/shibani\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding Byte Streams and Character Streams in Java - Entri Blog","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:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Understanding Byte Streams and Character Streams in Java - Entri Blog","og_description":"A\u00a0stream\u00a0is a sequence of data.\u00a0I\/O Stream\u00a0refers to a stream that is unlikely a method to sequentially access a file. I\/O Stream means an input source or output destination representing different types of sources e.g. disk files. The java.io package provides classes that allow you to convert between Unicode character streams and byte streams of non-Unicode [&hellip;]","og_url":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/","og_site_name":"Entri Blog","article_publisher":"https:\/\/www.facebook.com\/entri.me\/","article_published_time":"2022-05-21T11:55:30+00:00","article_modified_time":"2022-11-20T01:11:50+00:00","og_image":[{"width":820,"height":615,"url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png","type":"image\/png"}],"author":"Shibani Ghosh","twitter_card":"summary_large_image","twitter_creator":"@entri_app","twitter_site":"@entri_app","twitter_misc":{"Written by":"Shibani Ghosh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#article","isPartOf":{"@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/"},"author":{"name":"Shibani Ghosh","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/2cfbd0a262fb36f55cb1d95bfc5944b5"},"headline":"Understanding Byte Streams and Character Streams in Java","datePublished":"2022-05-21T11:55:30+00:00","dateModified":"2022-11-20T01:11:50+00:00","mainEntityOfPage":{"@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/"},"wordCount":666,"commentCount":0,"publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"image":{"@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png","articleSection":["Articles","Data Science and Machine Learning","Digital Marketing","Java Programming","React Native"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/","url":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/","name":"Understanding Byte Streams and Character Streams in Java - Entri Blog","isPartOf":{"@id":"https:\/\/entri.app\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage"},"image":{"@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png","datePublished":"2022-05-21T11:55:30+00:00","dateModified":"2022-11-20T01:11:50+00:00","breadcrumb":{"@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#primaryimage","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2022\/05\/generic-blog-thumbnail-19-1.png","width":820,"height":615},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/blog\/understanding-byte-streams-and-character-streams-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/blog\/"},{"@type":"ListItem","position":2,"name":"Entri Skilling","item":"https:\/\/entri.app\/blog\/category\/entri-skilling\/"},{"@type":"ListItem","position":3,"name":"Java Programming","item":"https:\/\/entri.app\/blog\/category\/entri-skilling\/java-programming\/"},{"@type":"ListItem","position":4,"name":"Understanding Byte Streams and Character Streams in Java"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/blog\/#website","url":"https:\/\/entri.app\/blog\/","name":"Entri Blog","description":"","publisher":{"@id":"https:\/\/entri.app\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/blog\/#organization","name":"Entri App","url":"https:\/\/entri.app\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","contentUrl":"https:\/\/entri.app\/blog\/wp-content\/uploads\/2019\/10\/Entri-Logo-1.png","width":989,"height":446,"caption":"Entri App"},"image":{"@id":"https:\/\/entri.app\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/entri.me\/","https:\/\/x.com\/entri_app"]},{"@type":"Person","@id":"https:\/\/entri.app\/blog\/#\/schema\/person\/2cfbd0a262fb36f55cb1d95bfc5944b5","name":"Shibani Ghosh","description":"Pouring out my thoughts through words!","url":"https:\/\/entri.app\/blog\/author\/shibani\/"}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25524006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/comments?post=25524006"}],"version-history":[{"count":4,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25524006\/revisions"}],"predecessor-version":[{"id":25547514,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/posts\/25524006\/revisions\/25547514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media\/25524009"}],"wp:attachment":[{"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/media?parent=25524006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/categories?post=25524006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entri.app\/blog\/wp-json\/wp\/v2\/tags?post=25524006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}