Java I/O
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Java I/O
Java I/O

Java I/O

|
     0     
5
4
3
2
1




Out of Stock


Notify me when this book is in stock
About the Book

All of Java's Input/Output (I/O) facilities are based on streams, which provide simple ways to read and write data of different types. Java provides many different kinds of streams, each with its own application. The universe of streams is divided into four large categories: input streams and output streams, for reading and writing binary data; and readers and writers, for reading and writing textual (character) data. You're almost certainly familiar with the basic kinds of streams -- but did you know that there's a CipherInputStream for reading encrypted data? And a ZipOutputStream for automatically compressing data? Do you know how to use buffered streams effectively to make your I/O operations more efficient? Java I/O tells you all you ever need to know about streams -- and probably more. A discussion of I/O wouldn't be complete without treatment of character sets and formatting. Java supports the UNICODE standard, which provides definitions for the character sets of most written languages. Consequently, Java is the first programming language that lets you do I/O in virtually any language. Java also provides a sophisticated model for formatting textual and numeric data. Java I/O shows you how to control number formatting, use characters aside from the standard (but outdated) ASCII character set, and get a head start on writing truly multilingual software. Java I/O includes: Coverage of all I/O classes and related classes In-depth coverage of Java's number formatting facilities and its support for International character sets

Table of Contents:
Preface. I. Basic I/O. 1. Introducing I/O What Is a Stream? Numeric Data Character Data Readers and Writers The Ubiquitous IOException The Console: System.out, System.in, and System.err Security Checks on I/O. 2. Output Streams The OutputStream Class Writing Bytes to Output Streams Writing Arrays of Bytes Flushing and Closing Output Streams Subclassing OutputStream A Graphical User Interface for Output Streams. 3. Input Streams The InputStream Class The read( ) Method Reading Chunks of Data from a Stream Counting the Available Bytes Skipping Bytes Closing Input Streams Marking and Resetting Subclassing InputStream An Efficient Stream Copier II. Data Sources. 4. File Streams Reading Files Writing Files File Viewer, Part 1. 5. Network Streams URLs URL Connections Sockets Server Sockets URLViewer III. Filter Streams. 6. Filter Streams The Filter Stream Classes The Filter Stream Subclasses Buffered Streams PushbackInputStream Print Streams Multitarget Output Streams File Viewer, Part 2. 7. Data Streams The Data Stream Classes Reading and Writing Integers Reading and Writing Floating-Point Numbers Reading and Writing Booleans Reading Byte Arrays Reading and Writing Text Miscellaneous Methods Reading and Writing Little-Endian Numbers Thread Safety File Viewer, Part 3. 8. Streams in Memory Sequence Input Streams Byte Array Streams Communicating Between Threads with Piped Streams. 9. Compressing Streams Inflaters and Deflaters Compressing and Decompressing Streams Working with Zip Files Checksums JAR Files File Viewer, Part 4. 10. Cryptographic Streams #Function Basics The MessageDigest Class Digest Streams Encryption Basics The Cipher Class Cipher Streams File Viewer, Part 5 IV. Advanced and Miscellaneous Topics. 11. Object Serialization Reading and Writing Objects Object Streams How Object Serialization Works Performance The Serializable Interface The ObjectInput and ObjectOutput Interfaces Versioning Customizing the Serialization Format Resolving Classes Resolving Objects Validation Sealed Objects. 12. Working with Files Understanding Files Directories and Paths The File Class Filename Filters File Filters File Descriptors Random-Access Files General Techniques for Cross-Platform File Access Code. 13. File Dialogs and Choosers File Dialogs JFileChooser File Viewer, Part 6. 14. Multilingual Character Sets and Unicode Unicode Displaying Unicode Text Unicode Escapes UTF-8 The char Data Type Other Encodings Converting Between Byte Arrays and Strings. 15. Readers and Writers The java.io.Writer Class The OutputStreamWriter Class The java.io.Reader Class The InputStreamReader Class Character Array Readers and Writers String Readers and Writers Reading and Writing Files Buffered Readers and Writers Print Writers Piped Readers and Writers Filtered Readers and Writers File Viewer Finis. 16. Formatted I/O with java.text The Old Way Choosing a Locale Number Formats Specifying Width with FieldPosition Parsing Input Decimal Formats An Exponential Number Format. 17. The Java Communications API The Architecture of the Java Communications API Identifying Ports Communicating with a Device on a Port Serial Ports Parallel Ports V. Appendixes A. Additional Resources B. Character Sets


Best Sellers


Product Details
  • ISBN-13: 9781565924857
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 232 mm
  • Returnable: N
  • Width: 175 mm
  • ISBN-10: 1565924851
  • Publisher Date: 20 Apr 1999
  • Binding: Book
  • Language: English
  • Weight: 850 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Java I/O
O'Reilly Media -
Java I/O
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Java I/O

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!