這篇文章主要講解了“Java開(kāi)發(fā)中常用的工具類(lèi)庫(kù)有哪些”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“Java開(kāi)發(fā)中常用的工具類(lèi)庫(kù)有哪些”吧!
拜城ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為成都創(chuàng)新互聯(lián)的ssl證書(shū)銷(xiāo)售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18982081108(備注:SSL證書(shū)合作)期待與您的合作!
Apache?Commons是一個(gè)非常有用的工具包,為解決各種實(shí)際的問(wèn)題提供了通用現(xiàn)成的代碼,不需要我們程序員再重復(fù)造輪子。關(guān)于這個(gè)類(lèi)庫(kù)的詳細(xì)介紹可以訪問(wèn)官網(wǎng)介紹。下面表格列出了部分的工具包。我們平時(shí)開(kāi)發(fā)過(guò)程中可以根據(jù)自己的需要挑選合適的工具包。
Components | Description | Latest Version | Released |
---|---|---|---|
BCEL | Byte Code Engineering Library - analyze, create, and manipulate Java class files | 6.3.1 | 2019/3/24 |
BeanUtils | Easy-to-use wrappers around the Java reflection and introspection APIs. | 1.9.3 | 2016/9/26 |
BSF | Bean Scripting Framework - interface to scripting languages, including JSR-223 | 3.1 | 2010/6/24 |
Chain | Chain of Responsibility pattern implemention. | 1.2 | 2008/6/2 |
CLI | Command Line arguments parser. | 1.4 | 2017/3/9 |
Codec | General encoding/decoding algorithms (for example phonetic, base64, URL). | 1.12 | 2019/2/16 |
Collections | Extends or augments the Java Collections Framework. | 4.3 | 2019/2/5 |
Compress | Defines an API for working with tar, zip and bzip2 files. | 1.18 | 2018/8/16 |
Configuration | Reading of configuration/preferences files in various formats. | 2.4 | 2018/10/29 |
Crypto | A cryptographic library optimized with AES-NI wrapping Openssl or JCE algorithm implementations. | 1.0.0 | 2016/7/22 |
CSV | Component for reading and writing comma separated value files. | 1.6 | 2018/9/25 |
Daemon | Alternative invocation mechanism for unix-daemon-like java code. | 1.0.15 | 2013/4/3 |
DBCP | Database connection pooling services. | 2.6.0 | 2019/2/19 |
DbUtils | JDBC helper library. | 1.7 | 2017/7/20 |
Digester | XML-to-Java-object mapping utility. | 3.2 | 2011/12/13 |
Library for sending e-mail from Java. | 1.5 | 2017/8/1 | |
Exec | API for dealing with external process execution and environment management in Java. | 1.3 | 2014/11/6 |
FileUpload | File upload capability for your servlets and web applications. | 1.4 | 2019/1/16 |
Functor | A functor is a function that can be manipulated as an object, or an object representing a single, generic function. | 1 | 2011-??-?? |
Geometry | Space and coordinates. | 1 | 2018-??-?? |
Imaging (previously called Sanselan) | A pure-Java image library. | 0.97-incubator | 2009/2/20 |
IO | Collection of I/O utilities. | 2.6 | 2017/10/15 |
JCI | Java Compiler Interface | 1.1 | 2013/10/14 |
JCS | Java Caching System | 2.2,1 | 2018/8/23 |
Jelly | XML based scripting and processing engine. | 1.0.1 | 2017/9/27 |
Jexl | Expression language which extends the Expression Language of the JSTL. | 3.1 | 2017/4/14 |
JXPath | Utilities for manipulating Java Beans using the XPath syntax. | 1.3 | 2008/8/14 |
Lang | Provides extra functionality for classes in java.lang. | 3.9 | 2019/4/15 |
Logging | Wrapper around a variety of logging API implementations. | 1.2 | 2014/7/11 |
Math | Lightweight, self-contained mathematics and statistics components. | 3.5 | 2015/4/17 |
Net | Collection of network utilities and protocol implementations. | 3.6 | 2017/2/15 |
Numbers | Number types (complex, quaternion, fraction) and utilities (arrays, combinatorics). | 1 | 2017-??-?? |
OGNL | An Object-Graph Navigation Language | 4 | 2013-??-?? |
Pool | Generic object pooling component. | 2.6.2 | 2019/4/11 |
Proxy | Library for creating dynamic proxies. | 1 | 2008/2/28 |
RDF | Common implementation of RDF 1.1 that could be implemented by systems on the JVM. | 0.3.0-incubating | 2016/11/15 |
RNG | Implementations of random numbers generators. | 1.2 | 2018/12/12 |
SCXML | An implementation of the State Chart XML specification aimed at creating and maintaining a Java SCXML engine.It is capable of executing a state machine defined using a SCXML document, and abstracts out the environment interfaces. | 0.9 | 2008/12/1 |
Statistics | Statistics. | 0.1 | ????-??-?? |
Text | Apache Commons Text is a library focused on algorithms working on strings. | 1.6 | 2018/10/16 |
Validator | Framework to define validators and validation rules in an xml file. | 1.6 | 2017/2/21 |
VFS | Virtual File System component for treating files, FTP, SMB, ZIP and such like as a single logical file system. | 2.3 | 2019/2/4 |
Weaver | Provides an easy way to enhance (weave) compiled bytecode. | 2 | 2018/9/7 |
除了上面表格中的工具包,Apache Common項(xiàng)目還包括以下幾個(gè)工具包,其中的http-client是我們平時(shí)非常常用的。
Cactus: Cactus is a simple test framework for unit testing server-side java code (Servlets, EJBs, Tag Libs, Filters, ...). The intent of Cactus is to lower the cost of writing tests for server-side code.
HiveMind: HiveMind is a services and configuration microkernel. HiveMind allows you to create your application using a service oriented architecture.
HttpClient 3.x: Framework for working with the client-side of the HTTP protocol.
Naming: The Naming subproject will contain common JNDI code along with various JNDI providers.
Guava工程包含了若干被Google的 Java項(xiàng)目廣泛依賴(lài) 的核心庫(kù),例如:集合 [collections] 、緩存 [caching] 、原生類(lèi)型支持 [primitives support] 、并發(fā)庫(kù) [concurrency libraries] 、通用注解 [common annotations] 、字符串處理 [string processing] 、I/O 等等。下面列出Guava工具包中的常用功能點(diǎn),以便需要的時(shí)候查閱使用。
使用和避免null:null是模棱兩可的,會(huì)引起令人困惑的錯(cuò)誤,有些時(shí)候它讓人很不舒服。很多Guava工具類(lèi)用快速失敗拒絕null值,而不是盲目地接受。
前置條件: 讓方法中的條件檢查更簡(jiǎn)單。
常見(jiàn)Object方法: 簡(jiǎn)化Object方法實(shí)現(xiàn),如hashCode()和toString()。
排序: Guava強(qiáng)大的”流暢風(fēng)格比較器”
Throwables:簡(jiǎn)化了異常和錯(cuò)誤的傳播與檢查。
Guava對(duì)JDK集合的擴(kuò)展,這是Guava最成熟和為人所知的部分
不可變集合: 用不變的集合進(jìn)行防御性編程和性能提升。
新集合類(lèi)型: multisets, multimaps, tables, bidirectional maps等。
強(qiáng)大的集合工具類(lèi): 提供java.util.Collections中沒(méi)有的集合工具。
擴(kuò)展工具類(lèi):讓實(shí)現(xiàn)和擴(kuò)展集合類(lèi)變得更容易,比如創(chuàng)建Collection的裝飾器,或?qū)崿F(xiàn)迭代器。
Guava Cache:本地緩存實(shí)現(xiàn),支持多種緩存過(guò)期策略。
Guava的函數(shù)式支持可以顯著簡(jiǎn)化代碼,但請(qǐng)謹(jǐn)慎使用它。
強(qiáng)大而簡(jiǎn)單的抽象,讓編寫(xiě)正確的并發(fā)代碼更簡(jiǎn)單
ListenableFuture:完成后觸發(fā)回調(diào)的Future
Service框架:抽象可開(kāi)啟和關(guān)閉的服務(wù),幫助你維護(hù)服務(wù)的狀態(tài)邏輯
非常有用的字符串工具,包括分割、連接、填充等操作
擴(kuò)展 JDK 未提供的原生類(lèi)型(如int、char)操作, 包括某些類(lèi)型的無(wú)符號(hào)形式
可比較類(lèi)型的區(qū)間API,包括連續(xù)和離散類(lèi)型
簡(jiǎn)化I/O尤其是I/O流和文件的操作,針對(duì)Java5和6版本
提供比Object.hashCode()更復(fù)雜的散列實(shí)現(xiàn),并提供布魯姆過(guò)濾器的實(shí)現(xiàn)
發(fā)布-訂閱模式的組件通信,但組件不需要顯式地注冊(cè)到其他組件中
優(yōu)化的、充分測(cè)試的數(shù)學(xué)工具類(lèi)
Guava 的 Java 反射機(jī)制工具類(lèi)
FileCopyUtils;
WebUtil;
感謝各位的閱讀,以上就是“Java開(kāi)發(fā)中常用的工具類(lèi)庫(kù)有哪些”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)Java開(kāi)發(fā)中常用的工具類(lèi)庫(kù)有哪些這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
新聞標(biāo)題:Java開(kāi)發(fā)中常用的工具類(lèi)庫(kù)有哪些
URL網(wǎng)址:http://muchs.cn/article20/ghssjo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作、網(wǎng)站策劃、電子商務(wù)、企業(yè)建站、云服務(wù)器、營(yíng)銷(xiāo)型網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)