没有合适的资源?快使用搜索试试~ 我知道了~
Java IO NIO and NIO 2 无水印pdf
4星 · 超过85%的资源 需积分: 43 51 下载量 157 浏览量
2017-09-30
21:46:22
上传
评论 2
收藏 4.34MB PDF 举报
温馨提示
试读
530页
Java IO NIO and NIO 2 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
资源推荐
资源详情
资源评论
Shelve in:
Programming Languages/Java
User level:
Intermediate–Advanced
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Friesen
www.apress.com
Java I/O, NIO and NIO.2
Java I/O, NIO and NIO.2 is a power-packed book that accelerates your mastery of Java’s
various I/O APIs. In this book, you’ll learn about classic I/O APIs (File, RandomAccessFile,
the stream classes and related types, and the reader/writer classes). Next, you’ll learn
about NIO’s buffer, channel, selector, regular expression, charset, and formatter APIs.
Finally, you’ll discover NIO.2’s offerings in terms of an improved file system interface,
asynchronous I/O, and the completion of socket channel functionality.
After reading and using this book, you’ll gain the accelerated knowledge and skill level to
really build applications with efficient data access, especially for today’s cloud computing
streaming data needs. Here are some of the highlights:
• Learn how to set permissions and more with the classic File class
• Learn how to build a flat file database with RandomAccessFile
• Get to know the byte array, file, filter, and other kinds of streams
• Master serialization and externalization
• Discover character streams and their associated writers/readers
• Tour the buffer APIs
• Work with channels to transfer buffers to and from I/O services
• Find out about selectors and readiness selection
• Master regular expressions
• Discover charsets and their association with Java’s String class
• Take advantage of the formatter API to create formatted output
• Learn how to customize the formatter API
• Explore the improved file system interface
• Discover asynchronous I/O and its association with futures and completion handlers
• Encounter socket channel improvements, including multicasting
SOURCE CODE ONLINE
9781484 215661
54999
ISBN 978-1-4842-1566-1
Java I/O, NIO
and NIO.2
Je Friesen
Java I/O, NIO and NIO.2
Copyright © 2015 by Je Friesen
is work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part
of the material is concerned, specically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microlms or in any other physical way, and transmission
or information storage and retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are
brief excerpts in connection with reviews or scholarly analysis or material supplied specically for the
purpose of being entered and executed on a computer system, for exclusive use by the purchaser of
the work. Duplication of this publication or parts thereof is permitted only under the provisions of the
Copyright Law of the Publisher’s location, in its current version, and permission for use must always
be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright
Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4842-1566-1
ISBN-13 (electronic): 978-1-4842-1565-4
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and
images only in an editorial fashion and to the benet of the trademark owner, with no intention of
infringement of the trademark.
e use in this publication of trade names, trademarks, service marks, and similar terms, even if they
are not identied as such, is not to be taken as an expression of opinion as to whether or not they are
subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal responsibility
for any errors or omissions that may be made. e publisher makes no warranty, express or implied,
with respect to the material contained herein.
Managing Director: Welmoed Spahr
Lead Editor: Steve Anglin
Technical Reviewers: Vinay Kumar and Wallace Jackson
Editorial Board: Steve Anglin, Louise Corrigan, James T. DeWolf, Jonathan Gennick,
Robert Hutchinson, Michelle Lowman, James Markham, Susan McDermott, Matthew
Moodie, Jerey Pepper, Douglas Pundick, Ben Renow-Clarke, Gwenan Spearing,
Steve Weiss
Coordinating Editor: Mark Powers
Copy Editor: Kezia Endsley
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a
California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc
(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use.
eBook versions and licenses are also available for most titles. For more information, reference our
Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary materials referenced by the author in this text is available
to readers at www.apress.com/9781484215661. For detailed information about how to locate your
book’s source code, go to www.apress.com/source-code/. Readers can also access source code at
SpringerLink in the Supplementary Material section for each chapter.
To my parents.
v
Contents at a
Glance
About the Author ������������������������������������������������������������������������������xv
About the Technical Reviewers ������������������������������������������������������xvii
Acknowledgments ���������������������������������������������������������������������������xix
Introduction �������������������������������������������������������������������������������������xxi
■Part I: Getting Started with I/O ����������������������������������������1
■Chapter 1: I/O Basics and APIs ������������������������������������������������������� 3
■Part II: Classic I/O APIs��������������������������������������������������17
■Chapter 2: File ������������������������������������������������������������������������������ 19
■Chapter 3: RandomAccessFile ������������������������������������������������������ 43
■Chapter 4: Streams ����������������������������������������������������������������������� 59
■Chapter 5: Writers and Readers ������������������������������������������������� 113
■Part III: New I/O APIs ���������������������������������������������������125
■Chapter 6: Buffers ���������������������������������������������������������������������� 127
■Chapter 7: Channels ������������������������������������������������������������������� 149
剩余529页未读,继续阅读
资源评论
- Gray_zhou12019-02-25挺不错的,挺好
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功