文件名称:
What's Happening With New I/O
开发工具:
文件大小: 236kb
下载次数: 0
上传时间: 2019-03-17
详细说明:NULL
博文链接:https://jiangyongyuan.iteye.com/blog/565923JavaOne
ava
Histol
NIO/JSR-51 added in J2SE 1.4
Buffers for data of primitive types
Character-set encoders and decoders
Multiplexed, non-blocking o facility for
developing scalable servers
File interface for locking and memory mapping
Also pattern matching facility for Perl-style regular
expressions
2006 JavaOne SM Conference
BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
History(cont
J2SE 5.0 added SSLEngine
Designed for use with non-blocking 0 facility
Other incremental improvements
J2SE50
inherited channel method
Lots of bug fixes
Mustang (Java sE 6)
Byte Buffer isDirect(), array(, others promoted to
java nio Buffer
New epoll based Selector for Linux 2.6 kernel
More bugs fixes
2006 JavaOneSM Conference BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
NIO, 2/JSR-203
UsR-203 submitted some time ago to work on
more l/o capabilities for the Java se platform
° Three main goals:
File system interface
Asynchronous I/O
Completion of socket channel functionality carried over
from Jsr-51
2006 JavaOneSM Conference BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
JsR-203 Status
EG setup in late 2005
Progressing well on file system aP and should be able
to create early draft soon
Will move onto Asynchronous O topic soon
Other misc. topics later
Target is Dolphin Java SE7
Depends of course on Dolphin EG approving it as
component JSR
2006 JavaOneSM Conference BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
Why a new file system API?
iava. io File has existed since JDK10
Many operations don 't throw exceptions
delete, renameTo. list
Does not support efficient access to file attributes
File permissions, ACLs
No bulk access
Handling of file names problematic
Access to file system features
Symbolic links, extended attributes, change notification
Support non-native file systems
2006 JavaOne SM Conference
BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
New File System APl
java nio filesystems package
Provides classes to represent file names file entries
file systemS, backing stores, and related classes
Use existing stream and channel classes for 1/O
Bridge methods to convert between java. o File
and fileName
Based on early/preliminary drafts so everything is subject to change
2006 JavaOneSM Conference BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
File Attributes
Meta-data associated with file entry
Non opaque and may have meaning at many levels
Very file system/platform specific
Approach group related attributes into views
Views may overlap
Access to a view is via attribute Accessor
Provides read/write access to the attributes in the view
Also related helper classes, constants
2006 JavaOneSM Conference BOF-0895
java. sun. com/javaone /sf
JavaOne
ava
File Attributes(cont
API will include a number of attribute accessors
Basic, POSIX, ACL,. maybe 4 or 5 in total
java nio filesystems. attributes package
Capture most commonly used and well-defined
Basic is simple/mandatory attributes
length, type, key, and possibility time stamps
POSIX is Basic plus more(owner, group, mode,.
May also have accessor that provides reflective access
to attributes
File system implementation may support others
(implementation defined
2006 JavaOneSM Conference BOF-0895 1
java. sun. com/javaone /sf
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.