In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the tool class libraries commonly used in Java development". The explanation in this article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "which tool class libraries are commonly used in Java development".
Apache Commons Class Library, a Common tool Class Library in the process of Java Development
Apache?Commons is a very useful toolkit that provides general ready-made code for solving a variety of practical problems, eliminating the need for us programmers to build wheels over and over again. For a detailed description of this class library, you can visit the official website. The following table lists some of the toolkits. We can usually choose the right toolkit according to our own needs in the process of development.
ComponentsDescriptionLatest VersionReleasedBCELByte Code Engineering Library-analyze, create, and manipulate Java class files6.3.12019/3/24BeanUtilsEasy-to-use wrappers around the Java reflection and introspection APIs.1.9.32016/9/26BSFBean Scripting Framework-interface to scripting languages, including JSR-2233.12010/6/24ChainChain of Responsibility pattern implemention.1.22008/6/2CLICommand Line arguments parser.1.42017/3/9CodecGeneral encoding/decoding algorithms (for example phonetic, base64, URL). 1.122019/2/16CollectionsExtends or augments the Java Collections Framework.4.32019/2/5CompressDefines an API for working with tar Zip and bzip2 files.1.182018/8/16ConfigurationReading of configuration/preferences files in various formats.2.42018/10/29CryptoA cryptographic library optimized with AES-NI wrapping Openssl or JCE algorithm implementations.1.0.02016/7/22CSVComponent for reading and writing comma separated value files.1.62018/9/25DaemonAlternative invocation mechanism for unix-daemon-like java code.1.0.152013/4/3DBCPDatabase connection pooling services.2.6.02019/2/19DbUtilsJDBC helper library.1.72017/7/20DigesterXML-to-Java-object mapping utility.3 .22011 / 12/13EmailLibrary for sending e-mail from Java.1.52017/8/1ExecAPI for dealing with external process execution and environment management in Java.1.32014/11/6FileUploadFile upload capability for your servlets and web applications.1.42019/1/16FunctorA functor is a function that can be manipulated as an object Or an object representing a single Generic function.12011-??-??GeometrySpace and coordinates.12018-??-??Imaging (previously called Sanselan) A pure-Java image library.0.97-incubator2009/2/20IOCollection of I am O utilities.2.62017/10/15JCIJava Compiler Interface1.12013/10/14JCSJava Caching System2.2,12018/8/23JellyXML based scripting and processing engine.1.0.12017/9/27JexlExpression language which extends the Expression Language of the JSTL.3.12017/4/14JXPathUtilities for manipulating Java Beans using the XPath syntax.1.32008/8/14LangProvides Extra functionality for classes in java.lang.3.92019/4/15LoggingWrapper around a variety of logging API implementations.1.22014/7/11MathLightweight Self-contained mathematics and statistics components.3.52015/4/17NetCollection of network utilities and protocol implementations.3.62017/2/15NumbersNumber types (complex, quaternion, fraction) and utilities (arrays Combinatorics) .12017-??-??OGNLAn Object-Graph Navigation Language42013-??-??PoolGeneric object pooling component.2.6.22019/4/11ProxyLibrary for creating dynamic proxies.12008/2/28RDFCommon implementation of RDF 1.1 that could be implemented by systems on the JVM.0.3.0-incubating2016/11/15RNGImplementations of random numbers generators.1.22018/12/12SCXMLAn 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.92008/12/1StatisticsStatistics.0.1????-??-??TextApache Commons Text is a library focused on algorithms working on strings.1.62018/10/16ValidatorFramework to define validators and validation rules in an xml file.1.62017/2/21VFSVirtual File System component for treating files, FTP, SMB, ZIP and such like as a single logical file system.2.32019/2/4WeaverProvides an easy way to enhance (weave) compiled bytecode.22018/9/7
In addition to the toolkits in the table above, the Apache Common project includes the following toolkits, of which http-client is very commonly used.
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 class library
The Guava project contains several core libraries that are widely relied on by Google's Java project, such as: collection [collections], cache [caching], native type support [primitives support], concurrency library [concurrency libraries], general annotation [common annotations], string processing [string processing], IAccord O, and so on. The common function points in the Guava toolkit are listed below for reference and use when needed.
Basic tools [Basic utilities]
Using and avoiding null:null is ambiguous, can cause confusing errors, and sometimes it's very uncomfortable. Many Guava utility classes reject null values with quick failures instead of blindly accepting them.
Precondition: makes the condition check in the method easier.
Common Object methods: simplify the implementation of Object methods, such as hashCode () and toString ().
Sorting: Guava's powerful "fluent style comparator"
Throwables: simplifies the propagation and checking of exceptions and errors.
Collection [Collections]
Guava's extension of the JDK collection, which is the most mature and known part of Guava
Immutable sets: defensive programming and performance improvements with immutable sets.
New collection types: multisets, multimaps, tables, bidirectional maps, etc.
Powerful collection tool class: provides collection tools that are not available in java.util.Collections.
Extend utility classes: make it easier to implement and extend collection classes, such as creating Collection decorators, or implementing iterators.
Cache [Caches]
Guava Cache: local cache implementation that supports multiple cache expiration policies.
Functional style [Functional idioms]
Guava's functional support can significantly simplify your code, but use it with caution.
Concurrency [Concurrency]
Powerful and simple abstraction makes it easier to write the right concurrent code
ListenableFuture: the Future that triggers the callback after completion
Service framework: abstracts services that can be turned on and off to help you maintain the state logic of the service
String processing [Strings]
Very useful string tools, including splitting, concatenation, padding, etc.
Primitive type [Primitives]
Extend native types (such as int, char) operations that are not provided by JDK, including some types of unsigned forms
Interval [Ranges]
Interval API of comparable types, including continuous and discrete types
I/O
Simplify the operation of iThink O streams and files, especially for Java5 and 6 versions
Hash [Hash]
Provides a more complex hash implementation than Object.hashCode () and provides an implementation of the Bloom filter
Event bus [EventBus]
Component communication in the publish-subscribe model, but components do not need to be explicitly registered with other components
Mathematical operation [Math]
Optimized, fully tested mathematical tool class
Reflection [Reflection]
Guava's Java reflection mechanism utility class
Common tool classes in Spring
FileCopyUtils
WebUtil
Thank you for your reading, the above is the content of "what are the commonly used tool class libraries in Java development". After the study of this article, I believe you have a deeper understanding of what the tool class libraries commonly used in Java development have, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.