学习-学个屁

工具类信息

2021-09-23

本文总阅读量
  • org.apache.commons.io.IOUtils
  • org.apache.commons.io.FileUtils
  • org.apache.commons.lang.StringUtils
  • org.apache.http.util.EntityUtils
  • org.apache.commons.lang3.StringUtils
  • org.apache.commons.io.FilenameUtils
  • org.springframework.util.StringUtils
  • org.apache.commons.lang.ArrayUtils
  • org.apache.commons.lang.StringEscapeUtils
  • org.apache.http.client.utils.URLEncodedUtils
  • org.apache.commons.codec.digest.DigestUtils
  • org.apache.commons.collections.CollectionUtils
  • org.apache.commons.lang3.ArrayUtils
  • org.apache.commons.beanutils.PropertyUtils
  • org.apache.commons.lang3.StringEscapeUtils
  • org.apache.commons.beanutils.BeanUtils

在Java中,实用程序类是定义一组通用功能的方法的类。

这篇文章展示了最常用的Java使用工具类及其常用的方法

希望通过本篇文章可以使您受到相关启发,以便之后可以直接使用

org.apache.commons.io.IOUtils
closeQuietly()
toString()
copy()
toByteArray()
write()
toInputStream()
readLines()
copyLarge()
lineInteator()
readFully()

org.apache.commons.io.FileUtils
deleteDirectory()
readFileToString()
deleteQuietly()
copyFile()
wirteStringToFile()
forceMkdir()
write()
listFiles()
copyDirectory()
forceDelete()

org.apache.commons.lang.StringUtils
isBlank()
isNotBlank()
isEmpty()
isNotEmpty()
equals()
join()
split()
Empty()
trimToNull()
replace()

org.apache.http.util.EntityUtils
toString()
consume()
toByteArray()
consumeQuietly()
getContentCharSet()

org.apache.commons.lang3.StringUtils
isBlank()
isNotBlank()
isEmpty()
isNotEmpty()
equals()
join()
split()
Empty()
replace()
capitalize()

org.apache.commons.io.FilenameUtils
getExtension()
getBaseName()
getName()
concat()
removeExtension()
normalize()
wildcardMatch()
separatorsToUnix()
getFullPath()
isExtension()

org.springframework.util.StringUtils
hasText()
hasLength()
isEmpty()
commaDelimitedListToStringArray()
collectionToDelimitedString()
replace()
delimitedListToStringArray()
uncapitalize()
collectionToCommaDelimitedString()

org.apache.commons.lang.ArrayUtils
contains()
addAll()
clone()
isEmpty()
add()
EMPTY_BYTE_ARRAY
subarry()
indexof()
isEquals()
toObject()

org.apache.commons.lang.StringEscapeUtils
escapeHtml()
unescapeHtml()
escapeXml()
escapeSql()
unescapeJava()
escapeJavascript()
unescapeXml()
unescapeJavascript()

org.apache.http.client.utils.URLEncodedUtils
format()
parse()

org.apache.commons.codec.digest.DigestUtils
md5Hex()
shaHex()
sha256Hex()
sha1Hex()
sha()
md5()
sha512Hex()
sha1()

org.apache.commons.collections.CollectionUtils
isEmpty()
isNotEmpty()
select()
transform()
filter()
find()
collect()
forAllDo()
addAll()
isEqualCollection()

org.apache.commons.lang3.ArrayUtils
contains()
isEmpty()
isNotEmpty()
add()
clone()
addAll()
subarray()
indexOf()
EMPTY_OBJECT_ARRAY
EMPTY_STRING_ARRAY

org.apache.commons.beanutils.PropertyUtils
getProperty()
setProperty()
getPropertyDescriptors()
isReadable()
copyProperties()
getPropertyDescriptor()
getSimpleProperty()
isWriteable()
setSimpleProperty()
getPropertyType()

org.apache.commons.lang3.StringEscapeUtils
unescapeHtml4()
escapeHtml4()
escapeXml()
unescapeXml()
escapeJava()
escapeEcmaScript()
unescapeJava()
escapeJson()
escapeXml10()

org.apache.commons.beanutils.BeanUtils
copyProperties()
getProperty()
setProperty()
describe()
populate()
copyProperty()
cloneBean()

使用支付宝打赏
使用微信打赏

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏

扫描二维码,分享此文章