{"id":264562,"date":"2026-07-15T02:15:40","date_gmt":"2026-07-14T23:15:40","guid":{"rendered":"https:\/\/1kitap1.com\/en\/java-2-black-book-steve-holzner-1\/"},"modified":"2026-07-15T02:15:40","modified_gmt":"2026-07-14T23:15:40","slug":"java-2-black-book-steve-holzner-1","status":"publish","type":"post","link":"https:\/\/1kitap1.com\/en\/java-2-black-book-steve-holzner-1\/","title":{"rendered":"Java 2 Black Book &#8211; Steve Holzner (1)"},"content":{"rendered":"<figure style=\"text-align:center;margin:0 auto 1.5em;\"><img decoding=\"async\" src=\"https:\/\/1kitap1.com\/en\/wp-content\/uploads\/2026\/07\/af35592c5e65adba.jpg\" alt=\" - Unknown book cover\" style=\"max-width:300px;width:100%;height:auto;box-shadow:0 4px 12px rgba(0,0,0,.25);border-radius:4px;\"\/><\/figure>\n<p>Where do I start?\u201d \u201cYou start,\u201d you say, \u201cwith the InputStream and OutputStream classes.\u201d The InputStream and OutputStream classes are the base classes for byte- oriented I\/O in Java, so it\u2019s worth taking a look at the methods that these classes provide to all other byte-oriented stream classes.<\/p>\n<p>Here\u2019s the inheritance diagram for the InputStream class, on which you base input streams: 1\/0 Handling = c\u2014 &#8221; = (=7) \u2014 = = \u00b0 \u2014 ae = Streams: File and java.lang.Object |___java.io.InputStream You&#8217;ll find the constructor of the InputStream class in Table 11.4 and its meth- ods in Table 11.5. We&#8217;ll take a look at the OutputStream class in the next solution.<\/p>\n<p>Table 11.4 The constructor of the InputStream class. InputStream() Constructs an InputStream object. Table 11.5 Methods of the InputStream class. @ int available() Gets the number of bytes that can be read from this input stream. void close() Closes this input stream. void mark(int readlimit) Marks the current position in this input stream, boolean markSupported() Returns True if this input stream supports the mark and reset methods.<\/p>\n<p>abstract int read() Reads the next byte of data from the input stream. int read(byte[] b) Reads some number of bytes from the input stream and stores them into the buffer array b. int read(byte[] b, int off, int len) Reads up to len bytes of data from the input stream into an array of bytes. void reset() Repositions this stream to the position where the mark method was last called on this input stream. long skip(long n) Skips over n bytes of data from this input stream.<\/p>\n<p>Immediate Solutions Working with OutputStream The counterpart to the InputStream class, introduced in the previous solution, is the OutputStream class, on which you base output streams. Here\u2019s the inher- itance diagram for OutputStream: java.lang.Object | java.io.QutputStream You&#8217;ll find the constructor of the OutputStream class in Table 11.6 and its meth- ods in Table 11.7. Now that you\u2019ve seen InputStream and OutputStream, it\u2019s time to put these classes to work, starting in the next solution.<\/p>\n<p>Table 11.6 The constructor of the Output Stream class. Sone see OutputStream() Constructs an OutputStream object. Table 11.7 Methods of the OutputStream class. void close() Closes this output stream. void flush() Flushes this output stream and writes any waiting buffered output bytes.<\/p>\n<blockquote>\n<p>\u2018Immediate Solutions\u201d is what the cover says and, immediate solutions are exactly what Visual Basic programmers get. No timewasting, no schleppy tutorials, but excellent demonstrations on how do get things done! \u2014Raj Phanse M.S., Applications Engineer Huntington Beach, CA I have found information in this book pertaining to functions that I didn\u2019t even know about. I have found my first reading of a Coriolis publication to be ex- tremely enjoyable. You now have a dedicated reader.<\/p>\n<p>Keep up the good work. \u2014Cali L. LaFollett, Programmer Bloomington, IL Finally a to-the-point, how-to reference book that cuts through the mire. The scenarios used are typical, hence useful&#8230;the book is three weeks old and already has dog-eared pages, thanks! \u2014Brian Nickel, Data Engineering * Tampa, FL Excellent, handy book to have next to your computer! A must-have for a serious programmer. \u2014Hanh D. Nguyen, Ph.D., Senior Scientist State College, PA If you have comments about this book or other Coriolis Technology Press books, please send them to us via ctp@coriolis.com.<\/p>\n<p>We hope to hear from you! JAVA 2 Black Book Steven Holzner Y) CORIOLIS\u2019 Publisher Steve Sayre Acquisitions Editor Kevin Weeks Product Marketing Manager Tracy Rooney Project Editor Hilary Long Technical Reviewer J. Brook Monroe Andrew Indovina Production Coordinator Peggy Cantrell Cover Designer Laura Wellander Layout Designer April Nielsen CD-ROM Developer Chris Nusbaum ) CORIOLIS\u201d Java 2 Black Book \u00a9 2001 The Coriolis Group. All rights reserved. . This book may not be duplicated in any way without the express written consent of the publisher, except in the form of brief excerpts or quotations for the purposes of review.<\/p>\n<p>The information contained herein is for the personal use of the reader and may not be incorporated in any commercial programs, other books, databases, or any kind of software without written consent of the publisher. Making copies of this book or any portion for any purpose other than your own is a violation of United States copyright laws.<\/p>\n<p>Limits of Liability and Disclaimer of Warranty The author and publisher of this book have used their best efforts in preparing the book and the programs contained in it. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, expressed or implied, with regard to these programs or the documentation contained in this book.<\/p>\n<\/blockquote>\n<p><em>This is a short excerpt from the opening of &ldquo;&rdquo; by Unknown, quoted for review and introduction purposes. All rights belong to the copyright holders.<\/em><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><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><\/span><\/a><\/span><\/div>\n<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:\/\/1kitap1.com\/en\/java-2-black-book-steve-holzner-1\/#Book_Information\" >Book Information<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/1kitap1.com\/en\/java-2-black-book-steve-holzner-1\/#Reading_Word_Statistics\" >Reading &amp; Word Statistics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/1kitap1.com\/en\/java-2-black-book-steve-holzner-1\/#Most_Frequent_Words\" >Most Frequent Words<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/1kitap1.com\/en\/java-2-black-book-steve-holzner-1\/#PDF_Download\" >PDF Download<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Book_Information\"><\/span>Book Information<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Unique ID:<\/strong> af35592c5e65adba<\/li>\n<li><strong>File Extension:<\/strong> .pdf<\/li>\n<li><strong>File Size:<\/strong> 56,979,181 bytes (54.34 MB)<\/li>\n<li><strong>Title:<\/strong> &#8211;<\/li>\n<li><strong>Author:<\/strong> Unknown<\/li>\n<li><strong>ISBN:<\/strong> 1588800970<\/li>\n<li><strong>Pages:<\/strong> 1197<\/li>\n<li><strong>Language:<\/strong> English (en)<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Reading_Word_Statistics\"><\/span>Reading &amp; Word Statistics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Estimated Reading Time:<\/strong> 1395.94 minutes<\/li>\n<li><strong>Total Words:<\/strong> 279,188<\/li>\n<li><strong>Total Characters:<\/strong> 1,850,695<\/li>\n<li><strong>Average Words per Page:<\/strong> 233.24<\/li>\n<li><strong>Average Characters per Page:<\/strong> 1546.11<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Most_Frequent_Words\"><\/span>Most Frequent Words<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>class (3398), java (3235), void (2569), int (2482), string (2207), new (1916), object (1672), public (1427), method (1402), text (1156), gets (1142), applet (1116), add (1069), use (1000), table (948), using (934), chapter (931), awt (909), static (876), value (874), methods (849), code (844), component (826), file (786), here\u2019s (774), item (769), boolean (760), swing (759), button (672), given (658), import (655), data (651), example (649), system (632), creating (623), solutions (606), menu (604), immediate (590), see (585), index (564), name (563), xml (519), list (501), protected (488), thread (481), app (476), sets (452), event (450), printin (449), dialog (448), figure (443), main (438), one (432), create (428), user (424), classes (421), says (419), look (417), array (417), returns (386), like (385), window (383), set (380), buttons (377), image (367), interface (360), true (355), also (347), say (343), box (341), display (341), extends (341), lang (336), number (332), loop (329), components (325), container (325), hello (322), type (322), label (320), constructs (319), you&#8217;ll (316), result (313), args (313), document (309), now (308), graphics (307), icon (306), pane (298), want (295), frame (293), element (291), next (290), handling (289), fields (289), current (289), color (287), start (285), continued (283), panes (282).<\/p>\n<h2><span class=\"ez-toc-section\" id=\"PDF_Download\"><\/span>PDF Download<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align:center;\"><a href=\"https:\/\/1kitap1.com\/en\/wp-content\/uploads\/2026\/07\/java-2-black-book-steve-holzner-1.pdf\" download rel=\"nofollow\" style=\"display:inline-block;background:#2271b1;color:#ffffff;padding:14px 36px;border-radius:6px;text-decoration:none;font-weight:bold;font-size:1.05em;\">&#11015;&#65039; PDF Download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Where do I start?\u201d \u201cYou start,\u201d you say, \u201cwith the InputStream and OutputStream classes.\u201d The InputStream and OutputStream classes are the base classes for byte- oriented I\/O in Java, so it\u2019s worth taking a look at the methods that these classes provide to all other byte-oriented stream classes. Here\u2019s the inheritance diagram for the InputStream [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":264560,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-264562","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-english"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/posts\/264562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/comments?post=264562"}],"version-history":[{"count":0,"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/posts\/264562\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/media\/264560"}],"wp:attachment":[{"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/media?parent=264562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/categories?post=264562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1kitap1.com\/en\/wp-json\/wp\/v2\/tags?post=264562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}