您好,欢迎访问一九零五行业门户网

Java开发中常用的工具类库有哪些

java开发过程中的常用工具类库 apache commons类库 apache?commons是一个非常有用的工具包,为解决各种实际的问题提供了通用现成的代码,不需要我们程序员再重复造轮子。关于这个类库的详细介绍可以访问官网介绍。下面表格列出了部分的工具包。我们平时开发过程中可以根据自己的需要挑选合适的工具包。
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
email 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项目还包括以下几个工具包,其中的http-client是我们平时非常常用的。
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类库 guava工程包含了若干被google的 java项目广泛依赖 的核心库,例如:集合 [collections] 、缓存 [caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries] 、通用注解 [common annotations] 、字符串处理 [string processing] 、i/o 等等。下面列出guava工具包中的常用功能点,以便需要的时候查阅使用。
基本工具 [basic utilities] 使用和避免null:null是模棱两可的,会引起令人困惑的错误,有些时候它让人很不舒服。很多guava工具类用快速失败拒绝null值,而不是盲目地接受。
前置条件: 让方法中的条件检查更简单。
常见object方法: 简化object方法实现,如hashcode()和tostring()。
排序: guava强大的”流畅风格比较器”
throwables:简化了异常和错误的传播与检查。
集合[collections] guava对jdk集合的扩展,这是guava最成熟和为人所知的部分
不可变集合: 用不变的集合进行防御性编程和性能提升。
新集合类型: multisets, multimaps, tables, bidirectional maps等。
强大的集合工具类: 提供java.util.collections中没有的集合工具。
扩展工具类:让实现和扩展集合类变得更容易,比如创建collection的装饰器,或实现迭代器。
缓存[caches] guava cache:本地缓存实现,支持多种缓存过期策略。
函数式风格[functional idioms] guava的函数式支持可以显著简化代码,但请谨慎使用它。
并发[concurrency] 强大而简单的抽象,让编写正确的并发代码更简单
listenablefuture:完成后触发回调的future
service框架:抽象可开启和关闭的服务,帮助你维护服务的状态逻辑
字符串处理[strings] 非常有用的字符串工具,包括分割、连接、填充等操作
原生类型[primitives] 扩展 jdk 未提供的原生类型(如int、char)操作, 包括某些类型的无符号形式
区间[ranges] 可比较类型的区间api,包括连续和离散类型
i/o 简化i/o尤其是i/o流和文件的操作,针对java5和6版本
散列[hash] 提供比object.hashcode()更复杂的散列实现,并提供布鲁姆过滤器的实现
事件总线[eventbus] 发布-订阅模式的组件通信,但组件不需要显式地注册到其他组件中
数学运算[math] 优化的、充分测试的数学工具类
反射[reflection] guava 的 java 反射机制工具类
spring中的常用工具类 filecopyutils;
webutil;
以上就是java开发中常用的工具类库有哪些的详细内容。
其它类似信息

推荐信息