没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
2页
JDK 7 Reference Card是一个参考指南,包含对Java 7所有新改进项目的总结,如所有新增的功能,增强和修改的JSR等。 Java SE 7规范(又名JDK 7)开发进展很顺利,计划于2011年夏天发布最终版本。为了让开发者能够方便快速地一览JDK 7中的所有重要元素,Developer.com发表了JDK 7 Reference Card,为开发者提供参考。 JDK 7 Reference Card包括的重点信息如下: ·Newly included JSRs (including NIO.2, The Da Vinci Project and Project Coin) ·Changed JSRs in maintenance reviews (including JAXP, JAXB and JAX-WS) ·Enhanced JSRs (including JLS and the JVM spec) ·Smaller enhancements (including GC and concurrency) ·JSRs deferred to JDK 8 or later (including closures) JDK 7 Reference Card将所有信息浓缩成在一页文档上,为PDF格式。
资源推荐
资源详情
资源评论
JSR 224: Java API for XML-Based Web Services (JAX-WS)
JSR 269: Pluggable Annotation-Processing API
JSR 334: Small Enhancements to the Java Programming Language
JSR 292: Dynamically Typed Languages on the Java Platform
JSR 203: More New I/O APIs for the Java Platform (“NIO.2”)
JDK 7 Reference Card
File System
Access
Socket-
Channel
Binding and
Conguration
Scalable
Asynchronous
I/O
Starting with JDK 7, all les should be referenced through the new java.nio.le package,
instead of the now deprecated java.io.File. JDK 7 will now use the java.nio.le.Path class
to manipulate a le in any le system (FileSystem). is FileSystem can use any FileStor-
age.
Before Java 7, you did this:
File file = new File(“some_file”);
With Java 7, you can do this:
Path path = Paths.get(“some_file”);
Now, the File class has a new method toPath() that allows you to transform File to Path:
Path path = new File(“some_file”).toPath();
e network-oriented channel is updated! Now you can bind channel’s socket and
manipulate socket options directly. JDK 7 provides platform-/implementation-specic
socket options beyond those required by the specication.
•JDK 7 includes a new ByteChannel, the SeekableByteChannel, which maintains a
current position.
•NetworkChannel is the new super interface for the network-oriented channels. You
easily bind the channel socket, and set and query for socket options.
•eMulticastChannel interface enables you to create Internet Protocol Multicasting.
e multicast implementations are directly bound to the native multicast facility.
Run tens of thousands of streams in separate threads with true asynchronous I/O! JDK
7 provides asynchronous operations for both sockets and les. Some of the coolest JDK
7 channels are:
•AsynchronousFileChannel: An asynchronous channel for reading and writing from
and to a le.
•AsynchronousSocketChannel: A simple asynchronous channel to a socket. e
methods are asynchronous and support timeouts.
•AsynchronousServerSocketChannel: An asynchronous channel to a ServerSocket.
•AsynchronousDatagramChannel:A channel to datagram-oriented socket.
DaVinciMachineProject (JSR 292) is intended to extend the JVM to support languages other than Java –
especially dynamic languages. e supported languages should co-exist with Java as if they were there from
the beginning – no discriminations are permitted.
OpenJDK’s Project Coin (JSR 334) is intended to add a set of minor language changes for improving day-to-
day Java development. e list of changes includes:
• Stringsinswitchstatements
• Binaryintegralliteralsandunderscoresinnumericliterals
• Asinglecatchblocktohandlemultipleexceptiontypes
• Improvedtypeinferenceforgenericinstancecreation
• Try-with-resources statement to automatically close “resources”
JSR 222: Java Architecture for XML Binding (JAXB)
JSR 206: Java API for XML Processing (JAXP)
JSR 199: Java Compiler API
JSR 199 was added in JDK 6 and provides the ability to invoke a Java compiler via an API. Beyond the javac
command-line tool, JSR 199 provides Java compiler-to-programmatic interaction as well. e Java compiler API
serves three main goals:
• Invocationofacompilerorother tools
• Programmaticaccesstostructureddiagnosticmessages
• Abilitytocustomizeleinputandoutput
JSR 206 is known as Java API for XML Processing (JAXP), an implementation-independent portable API for
processing XML with Java.
e main JAXP 1.3 features include:
• DOMLevel3 core
• Abuilt-invalidationprocessorforXML Schema
• AthoroughimplementationofXMLSchemadatatypesin javax.xml.datatype
• XSLTC,thefastcompilingtransformer,whichisnowthedefaultengineforXSLTprocessing
• Animplementationof XInclude,whichmakesitpossibletobuildadocumentusingtextorXMLstoredinreusable
segments elsewhere
JDK7willcontainJAXP1.3, which is the latest release of JAXP.
JSR224isknownastheJavaAPIforXML-basedWebServices(JAX-WS),aprogrammingmodelbasedonastandard
annotation model for developing Web services applications and clients.
e main JAX-WS 2 features include:
• SupportforJAXB2.1APIs(JSR222)
• SupportforWebServicesAddressing1.0
• APIsforEndpointReference(EPR):Creation(BindingProvider.getEndpointReference(),
Endpoint.getEndpointReference(), MessageContext.getEndpointReference()),
Propagation(UsingJAXB2.1tobindW3CEPRtoW3CEndpointReferenceclass,
Marshall/UnmarshallW3CEndpointReferenceclassusingJAXB)
• UserfriendlyAPIstoenable/disablefeatures,suchasMTOMandAddressing
JDK7willcontainJAX-WS2.2, which is the latest release of JAX-WS.
JSR 222 is known as Java Architecture for XML Binding (JAXB). e goal of JAXB is to allow Java developers to
map Java classes to XML representations.
e main features of JAXB 2 include:
• SupportforallW3CXMLSchemafeatures(JAXB1.0didnotspecifybindingsforsomeoftheW3CXMLSchema
features.)
• Supportfor binding Java to XML, with the addition of the javax.xml.bind.annotation package to control this binding.
• Asignicantreductioninthenumberofgeneratedschema-derivedclasses
• AdditionalvalidationcapabilitiesthroughtheJAXP1.3validationAPIs
JDK7willcontainJAXB2.2, which is the latest release of JAXB.
JSR 269 is known as Pluggable Annotation-Processing API
• StartingwithJDK5,annotationsbecameapowerfulmechanismforannotatingclasses,eldsandmethods.
Commonly, annotations are processed at build-time or run-time to get new semantic eects. is JSR denes APIs to
allow annotation processors to be created using a standard pluggable API.
• especicationwillincludeatleastasectionoftheAPImodelingtheJavaprogramminglanguageandasectionfor
declaring annotation processors and controlling how they are run.
• Sinceannotationsareplacedonprogramelements,anannotation-processingframeworkneedstoreectprogram
structure.
• Annotationprocessorswillbeabletospecifywhatannotationstheyprocessandmultipleprocessorswillbeableto
run cooperatively.
• eprocessorsandprogramstructureAPIcanbeaccessedatbuild-time.
NEWLY INCLUDED JSRs
CHANGED JSRs (in Maintenance Reviews)
资源评论
- chenyuelin3112014-12-27不错,是官方项文版,谢谢楼主分享了。
evil_killer
- 粉丝: 18
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功