跳过导航链接
A B C D E F G H I J L M N O P R S T U V W Y Z 

A

AbstractResourceDescriptor - com.mzlion.core.io.resource中的类
ResourceDescriptor抽象实现
AbstractResourceDescriptor() - 类 的构造器com.mzlion.core.io.resource.AbstractResourceDescriptor
 
addDate(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)天数 比如时间2014-05-12 12:00:00 DateCalcUtils.addDate(date,1); 2014-05-11 12:00:00 比如时间2014-05-12 12:00:00 DateCalcUtils.addDate(date,-1); 2014-05-13 12:00:00
addHour(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)小时数 比如时间2014-05-12 12:00:00 DateCalcUtils.addHour(date,1); 2014-05-12 13:00:00 比如时间2014-05-12 12:00:00 DateCalcUtils.addHour(date,-1); 2014-05-12 11:00:00
addMilliSecond(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定时间加/减毫秒数
addMinute(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)分钟数 比如时间2014-05-12 12:00:00 DateCalcUtils.addMinute(date,2); 2014-05-12 12:02:00 比如时间2014-05-12 12:00:00 DateCalcUtils.addMinute(date,-2); 2014-05-12 11:58:00
addMonth(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)月数 比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,1); 2014-06-12 12:10:00 比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,-1); 2014-04-12 12:10:00
addMonth(Date, int, boolean) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)月数 比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,1,false); 2014-06-12 12:10:00 比如时间2014-05-12 12:10:00 DateCalcUtils.addMonth(date,1,true); 2014-06-01 00:00:00
addSecond(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)秒数 比如时间2014-05-12 12:00:00 DateCalcUtils.addSecond(date,2); 2014-05-12 12:00:02 比如时间2014-05-12 12:00:00 DateCalcUtils.addSecond(date,-2); 2014-05-12 11:59:58
addStringToArray(String[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
向数组中追加一个字符串,返回一个新的字符串数组.
addYear(Date, int) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
给指定日期加(减)年份数 比如时间2014-05-12 12:10:00 DateCalcUtils.addYear(date,1); 2015-06-12 12:10:00 比如时间2014-05-12 12:10:00 DateCalcUtils.addYear(date,-1); 2013-04-12 12:10:00
ALGORITHM_MD5 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
 
ALGORITHM_SHA_1 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
 
ALGORITHM_SHA_256 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
 
ALGORITHM_SHA_384 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
 
ALGORITHM_SHA_512 - 类 中的静态变量com.mzlion.core.digest.DigestUtils
 
ALL - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_APK - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_DOC - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_FORM_URLENCODED - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_GZ - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_IPA - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_JSON - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_OCTET_STREAM - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_PDF - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_PPT - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_XLS - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_XML - 类 中的静态变量com.mzlion.core.http.ContentType
 
APPLICATION_ZIP - 类 中的静态变量com.mzlion.core.http.ContentType
 
applyRelativePath(String, String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
将相对路径relativePath转为相对于path路径下的文件路径
 StringUtils.applyRelativePath("/opt/app/config.properties", "/xml/jdbc.xml"); //--- /opt/app/xml/jdbc.properties
 StringUtils.applyRelativePath("/opt/app/config/", "/xml/jdbc.xml"); //--- /opt/app/config/xml/jdbc.properties
 
ArrayUtils - com.mzlion.core.lang中的类
数组工具类
asCommonSignString(Map<String, String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将Map对象的数据转为通用签名字符串(目前通用签名规则为:将key和value用'='连接,每个键值对之间用' '连接,并且键列表按照自然排序)
asList(T...) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将数组的内容转换为集合对象,注意该集合对象的可以修改的, 注意区别JDK APIArrays.asList(Object[])不同。
asMap(K[], V[]) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将数组一一映射转换为Map对象,思路来自于Python中的字典,如果两个数组的长度不一致,则取较短的那个数组。
asMap(String, String, String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
键值映射,将keyStrvalueStr按照delimiter分隔符分割,然后一一映射为Map对象。
Assert - com.mzlion.core.lang中的类
参数校验工具类
avoidScientificNotation(double) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
将科学计数法转为字符串
avoidScientificNotation(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
将科学计数法转为字符串

B

Base64 - com.mzlion.core.binary中的类
BASE64的编码和解码工具
BeanUtils - com.mzlion.core.utils中的类
JavaBean的工具类
BeanUtils() - 类 的构造器com.mzlion.core.utils.BeanUtils
 
build() - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver.Builder
Builder() - 类 的构造器com.mzlion.core.utils.PlaceholderPropertyResolver.Builder
创建构造对象

C

capitalize(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将字符串的第一个字符(必须在Character.toUpperCase(char)中,否则就不会改变)转换为大写.
changeCharacterCase(String, int, boolean) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将字符串中指定位置(index)的字符(必须在Character.toLowerCase(char))转为大(小)写,否则就不会改变
 StringUtils.changeCharacterCase("Hello",2,true); //--- "HeLlo"
 
CharsetUtils - com.mzlion.core.lang中的类
GBK和UTF8之间的相互转码,还支持转Unicode码,在处理乱码时是一种解决方案
CharsetUtils() - 类 的构造器com.mzlion.core.lang.CharsetUtils
 
ClassLoaderUtils - com.mzlion.core.utils中的类
ClassLoader相关的工具类
ClassLoaderUtils() - 类 的构造器com.mzlion.core.utils.ClassLoaderUtils
 
CLASSPATH_URL_PREFIX - 接口 中的静态变量com.mzlion.core.io.resource.ResourceDescriptorLoader
 
CLASSPATH_URL_PREFIX - 类 中的静态变量com.mzlion.core.io.ResourceUtils
 
ClassPathResourceDescriptor - com.mzlion.core.io.resource中的类
Classpath的资源描述
ClassPathResourceDescriptor(String) - 类 的构造器com.mzlion.core.io.resource.ClassPathResourceDescriptor
 
ClassPathResourceDescriptor(String, ClassLoader) - 类 的构造器com.mzlion.core.io.resource.ClassPathResourceDescriptor
 
ClassPathResourceDescriptor(String, Class<?>) - 类 的构造器com.mzlion.core.io.resource.ClassPathResourceDescriptor
 
ClassPathResourceDescriptor(String, ClassLoader, Class<?>) - 类 的构造器com.mzlion.core.io.resource.ClassPathResourceDescriptor
 
ClassUtils - com.mzlion.core.utils中的类
CLass工具类,如果需要反射Class则请调用ReflectionUtils
ClassUtils() - 类 的构造器com.mzlion.core.utils.ClassUtils
 
cleanDirectory(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
清理目录
clearDescriptors() - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
清理缓存
closeQuietly(Closeable) - 类 中的静态方法com.mzlion.core.io.IOUtils
关闭Closeable,该方法等效于Closeable.close() 该方法主要用于finally块中,并且忽略所有的异常 Example code: Closeable closeable = null; try { closeable = new FileReader("foo.txt"); // process closeable closeable.close(); } catch (Exception e) { // error handling } finally { IOUtils.closeQuietly(closeable); }
CollectionUtils - com.mzlion.core.lang中的类
2016-05-05 22:05 集合框架的工具类
CollectionUtils() - 类 的构造器com.mzlion.core.lang.CollectionUtils
 
com.mzlion.core.beans - 程序包 com.mzlion.core.beans
 
com.mzlion.core.binary - 程序包 com.mzlion.core.binary
 
com.mzlion.core.date - 程序包 com.mzlion.core.date
 
com.mzlion.core.digest - 程序包 com.mzlion.core.digest
 
com.mzlion.core.exceptions - 程序包 com.mzlion.core.exceptions
 
com.mzlion.core.http - 程序包 com.mzlion.core.http
 
com.mzlion.core.io - 程序包 com.mzlion.core.io
 
com.mzlion.core.io.resource - 程序包 com.mzlion.core.io.resource
 
com.mzlion.core.json - 程序包 com.mzlion.core.json
 
com.mzlion.core.json.fastjson - 程序包 com.mzlion.core.json.fastjson
 
com.mzlion.core.json.gson - 程序包 com.mzlion.core.json.gson
 
com.mzlion.core.lang - 程序包 com.mzlion.core.lang
 
com.mzlion.core.reflect - 程序包 com.mzlion.core.reflect
 
com.mzlion.core.utils - 程序包 com.mzlion.core.utils
 
compare(T, T) - 类 中的方法com.mzlion.core.json.TypeRef
Compares its two arguments for order.
concatStringArrays(String[], String[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将两个字符串数组对接,返回一个新的字符串数组.
containsElement(T[], T) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断数组中是否包含了指定的元素
 ObjectUtils.containsElement(new String[]{"aaaa","bbb","cc",null},null); //--- true
 ObjectUtils.containsElement(new String[]{"aaaa","bbb","cc"},"cc"); //--- true
 ObjectUtils.containsElement(new String[]{"aaaa","bbb","cc",null},"xx"); //--- false
 
containsProperty(String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
判断key是否存在
containsProperty(String) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
判断key是否存在
containsWhitespace(CharSequence) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串中是否存在空白符,方法会检查字符串是否为null
 StringUtils.containsWhitespace(null); //--- false
 StringUtils.containsWhitespace(""); //--- false
 StringUtils.containsWhitespace(" "); //--- true
 StringUtils.containsWhitespace("ax x"); //--- true
 
containsWhitespace(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串中是否存在空白符,方法会检查字符串是否为null
ContentType - com.mzlion.core.http中的类
针对MIME的一些封装
copy(InputStream, OutputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
流的拷贝,超大流(超过2GB)拷贝返回的结果为-1。
copy(InputStream, Writer) - 类 中的静态方法com.mzlion.core.io.IOUtils
将输入流的字节数组转换为Writer字符内容,使用系统默认编码。
copy(InputStream, Writer, String) - 类 中的静态方法com.mzlion.core.io.IOUtils
将输入流的字节数组转换为Writer字符内容,使用系统默认编码。
copy(InputStream, Writer, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
将输入流的字节数组转换为Writer字符内容,使用系统默认编码。
copy(Reader, Writer) - 类 中的静态方法com.mzlion.core.io.IOUtils
将字符输入流转换为字符输出流,如果字符输入流的大小超过2GB,则返回-1
copy(Reader, OutputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
将字符输入流转为字节输出流,使用平台默认编码
copy(Reader, OutputStream, String) - 类 中的静态方法com.mzlion.core.io.IOUtils
将字符输入流转为字节输出流,使用指定编码
copy(Reader, OutputStream, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
将字符输入流转为字节输出流,使用指定编码
copyDirectory(File, File) - 类 中的静态方法com.mzlion.core.io.FileUtils
目录复制
copyDirectory(File, File, boolean) - 类 中的静态方法com.mzlion.core.io.FileUtils
目录复制
copyDirectory(File, File, boolean, FileFilter) - 类 中的静态方法com.mzlion.core.io.FileUtils
目录复制
copyFile(File, OutputStream) - 类 中的静态方法com.mzlion.core.io.FileUtils
文件内容拷贝指定的输出流中
copyFile(File, File) - 类 中的静态方法com.mzlion.core.io.FileUtils
文件拷贝
copyFile(File, File, boolean) - 类 中的静态方法com.mzlion.core.io.FileUtils
文件拷贝
copyFileToDirectory(File, File) - 类 中的静态方法com.mzlion.core.io.FileUtils
将文件拷贝到目录
copyLarge(InputStream, OutputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
流的拷贝,如果拷贝流失败则返回-1.
copyLarge(InputStream, OutputStream, byte[]) - 类 中的静态方法com.mzlion.core.io.IOUtils
流的拷贝,如果拷贝流失败则返回-1.
copyLarge(Reader, Writer) - 类 中的静态方法com.mzlion.core.io.IOUtils
字符流的拷贝,支持大字符流(超过2GB)拷贝
copyLarge(Reader, Writer, char[]) - 类 中的静态方法com.mzlion.core.io.IOUtils
字符流的拷贝,支持大字符流(超过2GB)拷贝
copyProperties(Object, Object) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
Javabean的属性值拷贝,即对象的拷贝
copyProperties(Object, Object, String...) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
Javabean的属性值拷贝,即对象的拷贝
copyStream(InputStream, File) - 类 中的静态方法com.mzlion.core.io.FileUtils
将输入流的数据输出到文件中
create(String, Charset) - 类 中的静态方法com.mzlion.core.http.ContentType
根据MIME类型创建
create(String, String) - 类 中的静态方法com.mzlion.core.http.ContentType
根据MIME类型创建
create(String) - 类 中的静态方法com.mzlion.core.http.ContentType
根据MIME类型创建

D

DateCalcUtils - com.mzlion.core.date中的类
日期计算工具类,该类主要值对Date增改查【添加、修改、获取年月日时分秒】。
dateDiff(int, Date, Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
 
DateUtils - com.mzlion.core.date中的类
日期工具类,提供了日期格式化和日期解析功能。
DateUtils() - 类 的构造器com.mzlion.core.date.DateUtils
 
decode(String) - 类 中的静态方法com.mzlion.core.binary.Base64
标准的BASE64解码
decode(String) - 类 中的静态方法com.mzlion.core.binary.Hex
解码
decode(char[]) - 类 中的静态方法com.mzlion.core.binary.Hex
解码
decode2String(String) - 类 中的静态方法com.mzlion.core.binary.Base64
标准的BASE64解码
decode2String(String, String) - 类 中的静态方法com.mzlion.core.binary.Base64
标准的BASE64解码
decode2String(String) - 类 中的静态方法com.mzlion.core.binary.Hex
解码,转为原始字符串是采用UTF-8编码
decode2String(String, Charset) - 类 中的静态方法com.mzlion.core.binary.Hex
解码,转为原始字符串是采用encoding编码
DecodeException - com.mzlion.core.exceptions中的异常错误
Thrown on an unrecoverable problem decode data.
DecodeException(String) - 异常错误 的构造器com.mzlion.core.exceptions.DecodeException
Constructs a new runtime exception with the specified detail message.
DEFAULT_BINARY - 类 中的静态变量com.mzlion.core.http.ContentType
 
DEFAULT_TEXT - 类 中的静态变量com.mzlion.core.http.ContentType
 
DefaultResourceDescriptorLoader - com.mzlion.core.io.resource中的类
默认资源载入处理器
DefaultResourceDescriptorLoader() - 类 的构造器com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
 
DefaultResourceDescriptorLoader(ClassLoader) - 类 的构造器com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
 
delete(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
文件删除,支持目录删除
delete(String, String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将字符串str中的出现了指定子串pattern全部删除,删除的字符串不支持正则表达式.
digest(byte[]) - 类 中的静态方法com.mzlion.core.digest.MD5
md5计算
digest(InputStream) - 类 中的静态方法com.mzlion.core.digest.MD5
将输入流的数据进行MD5计算
digestBase64(String) - 类 中的静态方法com.mzlion.core.digest.MD5
计算字符串(默认UTF8)的MD5值,将结果转为BASE64输出
digestBase64(String, Charset) - 类 中的静态方法com.mzlion.core.digest.MD5
计算字符串的MD5值,将结果转为BASE64输出
digestHex(String) - 类 中的静态方法com.mzlion.core.digest.MD5
计算字符串的md5值,结果转为16进制的字符串返回,默认采用StandardCharsets.UTF_8编码
digestHex(String, Charset) - 类 中的静态方法com.mzlion.core.digest.MD5
计算字符串的md5值,结果转为16进制的字符串返回
digestHex(InputStream) - 类 中的静态方法com.mzlion.core.digest.MD5
计算的流的md5值,结果转为16进制的字符串返回
DigestUtils - com.mzlion.core.digest中的类
摘要计算工具类,提供了MD5,SHA-1,SHA-256,SHA-384,SHA-512等常用摘要算法方法
DigestUtils() - 类 的构造器com.mzlion.core.digest.DigestUtils
 
download(File, HttpServletRequest, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
下载文件,原文件不会被删除。
download(File, boolean, HttpServletRequest, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
下载文件
download(String, File, boolean, HttpServletRequest, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
下载文件
download(String, InputStream, HttpServletRequest, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
下载文件
download(String, InputStream, long, ContentType, HttpServletRequest, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
下载文件
downloadInline(HttpServletRequest, HttpServletResponse, File) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
文件输出,针对Image等支持的格式会直接在浏览器显示,不会提示下载;如果是浏览器不能识别的文件,则浏览器会下载。
downloadInline(HttpServletRequest, HttpServletResponse, File, boolean) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
文件输出,针对Image等支持的格式会直接在浏览器显示,不会提示下载;如果是浏览器不能识别的文件,则浏览器会下载。
downloadInline(HttpServletRequest, HttpServletResponse, String, File, boolean) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
文件输出,针对Image等支持的格式会直接在浏览器显示,不会提示下载;如果是浏览器不能识别的文件,则浏览器会下载。

E

EMPTY_STRING - 类 中的静态变量com.mzlion.core.lang.StringUtils
 
encode(byte[]) - 类 中的静态方法com.mzlion.core.binary.Base64
标准的BASE64编码
encode(String) - 类 中的静态方法com.mzlion.core.binary.Base64
标准的BASE64编码
encode(String, String) - 类 中的静态方法com.mzlion.core.binary.Base64
标准的BASE64编码
encode(byte[]) - 类 中的静态方法com.mzlion.core.binary.Hex
将字节数组转为字符数组
encode(byte[], boolean) - 类 中的静态方法com.mzlion.core.binary.Hex
将字节转为字符数组
encode2String(byte[]) - 类 中的静态方法com.mzlion.core.binary.Hex
将字节数组转为16进制字符串
endsWithIgnoreCase(String, String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串中是否以给定的字符串结尾,不考虑大小写问题.
exists() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
判断资源是否存在
exists() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
判断资源是否存在
exists() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
判断资源是否存在
EXTENSION_SEPARATOR - 类 中的静态变量com.mzlion.core.io.FilenameUtils
文件名和文件类型的分隔符

F

FatalBeanException - com.mzlion.core.exceptions中的异常错误
Thrown on an unrecoverable problem encountered in the beans packages or sub-packages, e.g. bad class or field.
FatalBeanException(String) - 异常错误 的构造器com.mzlion.core.exceptions.FatalBeanException
Create a new FatalBeanException with the specified message.
FatalBeanException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalBeanException
Create a new FatalBeanException with the specified message and root cause.
FatalDigestException - com.mzlion.core.exceptions中的异常错误
MessageDigest exception
FatalDigestException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalDigestException
Create a new FatalBeanException with the root cause.
FatalFileException - com.mzlion.core.exceptions中的异常错误
Thrown on an unrecoverable problem encountered in the file operate.
FatalFileException(String) - 异常错误 的构造器com.mzlion.core.exceptions.FatalFileException
Create a new FatalFileException with the specified message.
FatalFileException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalFileException
Create a new FatalFileException with the root cause.
FatalFileException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalFileException
Create a new FatalFileException with the specified message and root cause.
FatalStreamException - com.mzlion.core.exceptions中的异常错误
Thrown on an unrecoverable problem encountered on stream.
FatalStreamException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalStreamException
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ?
FatalStreamException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FatalStreamException
Constructs a new runtime exception with the specified detail message and cause.
fen2Yuan(long) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额分转元,保留2位小数
fen2Yuan(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额分转元,保留2位小数
FieldFilter - com.mzlion.core.reflect中的接口
field过滤器
FILE_URL_PREFIX - 类 中的静态变量com.mzlion.core.io.ResourceUtils
 
FileArchiveException - com.mzlion.core.exceptions中的异常错误
Thrown an exception on file archive.
FileArchiveException(String) - 异常错误 的构造器com.mzlion.core.exceptions.FileArchiveException
Constructs a new runtime exception with the specified detail message.
FileArchiveException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.FileArchiveException
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ?
FilenameUtils - com.mzlion.core.io中的类
文件名相关的工具类
FilenameUtils() - 类 的构造器com.mzlion.core.io.FilenameUtils
 
FileUtils - com.mzlion.core.io中的类
文件工具类,该工具类的部分实现参照了commons-io框架提供的方法。
FileUtils() - 类 的构造器com.mzlion.core.io.FileUtils
 
findField(Class<?>, String) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
根据fieldNametargetClass查找,支持父类的属性查找。
findField(Class<?>, String, Class<?>) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
根据fieldNamefieldTypetargetClass查找,支持父类的属性查找。
forceMakeDir(String) - 类 中的静态方法com.mzlion.core.io.FileUtils
创建目录
forceMakeDir(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
创建目录
formatBeginDayInMonth(String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取当前时间的月份第一天,并且格式化为字符串
formatBeginDayInMonth(Date, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取指定时间的月份第一天,并且格式化为字符串
formatDate() - 类 中的静态方法com.mzlion.core.date.DateUtils
格式化当前时间,格式化规则为DateUtils.PATTERN_FULL
formatDate(String) - 类 中的静态方法com.mzlion.core.date.DateUtils
按照格式化规则对当前日期进行格式化返回
formatDate(Date) - 类 中的静态方法com.mzlion.core.date.DateUtils
将日期转为字符串,格式化规则yyyyMMddHHmmss
formatDate(Date, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
将日期转为字符串
formatDate(long, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
将日期转为字符串
formatDate(long) - 类 中的静态方法com.mzlion.core.date.DateUtils
将日期转为字符串,格式化规则yyyyMMddHHmmss
formatNextDate(int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取当前日期后N天(可为负值,则表示前N天)日期,并且格式化为字符串
formatNextDate(Date, int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取指定日期后N天(可为负值,则表示前N天)日期,并且格式化为字符串
formatNextMonths(int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取距离当前时间相隔months月份(前几个月或后几个月)的时间,并且格式化为字符串
formatNextMonths(long, int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取距离指定时间specialTime相隔months月份(前几个月或后几个月)的时间,并且格式化为字符串
formatNextMonths(Date, int, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
获取距离指定时间specialTime相隔months月份(前几个月或后几个月)的时间
formatSize(long) - 类 中的静态方法com.mzlion.core.io.FileUtils
将文件大小格式化输出
formatSize(double) - 类 中的静态方法com.mzlion.core.io.FileUtils
将文件大小格式化输出
formatSizeAsString(String) - 类 中的静态方法com.mzlion.core.io.FileUtils
将文件大小格式化输出
fromJson(String, Class<T>) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将json字符串转为Java对象
fromJson(String, TypeRef<T>) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将复杂的json字符串转为Java对象
fromJson(String, Class<T>) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将Json字符串转为对象
fromJson(String, Type) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将Json字符串转为对象
fromJson(String, TypeRef<T>) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将Json字符串转为对象

G

gbk2Unicode(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
GBK编码的字符串转为Unicode编码的字符串
gbk2utf8(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
gbk编码的字符串转为UTF8编码的字符串
GenericException - com.mzlion.core.exceptions中的异常错误
GenericException represents all kinds of runtime exception in the application.
GenericException() - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
Constructs a new runtime exception with null as its detail message.
GenericException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ?
GenericException(String) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
Constructs a new runtime exception with the specified detail message.
GenericException(String, Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
Constructs a new runtime exception with the specified detail message and cause.
GenericException(String, Throwable, boolean, boolean) - 异常错误 的构造器com.mzlion.core.exceptions.GenericException
Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
get12Hour(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取小时(12制) 比如时间2014-05-12 22:10:00 DateCalcUtils.get12Hour(date); 10
get24Hour(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取小时(24制) 比如时间2014-05-12 22:10:00 DateCalcUtils.get24Hour(date); 22
getAllProperties() - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
返回所有的键值对
getAllProperties() - 接口 中的方法com.mzlion.core.utils.PropertyResolver
返回所有的键值对
getBeginDayInMonth(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取月份第一天 比如时间2014-05-12 DateCalcUtils.getBeginDayInMonth("2014-05-12","yyyy-MM-dd"); 204-05-01
getCharset() - 类 中的方法com.mzlion.core.http.ContentType
获取字符集编码
getClassLoader() - 类 中的方法com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
 
getClassLoader() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptorLoader
 
getClientIp(HttpServletRequest) - 类 中的静态方法com.mzlion.core.http.IPUtils
获取用户的真正IP地址
getDay(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取天 比如时间2014-05-12 12:10:00 DateCalcUtils.getDay(date); 12
getDaysBetween(Date, Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
计算两个日期之间相差的天数,测试发现还是有问题(没问题) 比如Date start = 2012-2-12 Date end = 2012-3-1 DateCalcUtils.getDaysBetween(start,end) 18
getDeclaredFields(Class<?>) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
获取Class定义的属性列表
getDeclaredFields(Class<?>, FieldFilter...) - 类 中的静态方法com.mzlion.core.reflect.ReflectionUtils
根据过滤器过滤属性,最后返回类解析的属性列表
getDefaultClassLoader() - 类 中的静态方法com.mzlion.core.utils.ClassLoaderUtils
返回一个默认的类加载器:首先会从当前线程获取类加载,如果获取失败则获取当前类的类加载器。
getDescription() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
Return a description for this resource, to be used for error output when working with the resource.
getDescription() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
Return a description for this resource, to be used for error output when working with the resource.
getDescription() - 类 中的方法com.mzlion.core.io.resource.URLResourceDescriptor
Return a description for this resource, to be used for error output when working with the resource.
getDownloadFilename(HttpServletRequest, String) - 类 中的静态方法com.mzlion.core.http.ResponseDownloadUtils
转义文件下载名
getEndDayInMonth(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取月份最后一天 比如时间2014-05-12 DateCalcUtils.getEndDayInMonth(date); 204-05-31
getFile() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
返回文件对象,如果对象不存在则返回null
getFile() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
返回文件对象,如果对象不存在则返回null
getFile() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
返回文件对象,如果对象不存在则返回null
getFile(String) - 类 中的静态方法com.mzlion.core.io.ResourceUtils
 
getFileExt(String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
从文件路径中提取文件后缀名
 StringUtils.getFileExt("/opt/app/config.properties"); //--- properties
 
getFileExt(File) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
从文件路径中提取文件后缀名
 StringUtils.getFileExt("/opt/app/config.properties"); //--- properties
 
getFilename(String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
从文件路径中提取文件名,不支持Windows系统下的路径
 StringUtils.getFilename("/opt/app/config.properties"); //--- config.properties
 
getFilename() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
返回文件名,如果资源不存在,则返回null
getFilename() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
返回文件名,如果资源不存在,则返回null
getFilename() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
返回文件名,如果资源不存在,则返回null
getInputStream() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
获取输入流,该输入流支持多次读取
getInputStream() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
获取输入流,该输入流支持多次读取
getInputStream() - 类 中的方法com.mzlion.core.io.resource.URLResourceDescriptor
获取输入流,该输入流支持多次读取
getInstance() - 类 中的静态方法com.mzlion.core.beans.PropertyUtilBean
获取对象PropertyUtilBean
getMillisecond(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取毫秒 比如时间2014-05-12 22:10:00 DateCalcUtils.getMillisecond(date); 151
getMimeType() - 类 中的方法com.mzlion.core.http.ContentType
获取MIME类型
getMinute(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取分钟 比如时间2014-05-12 22:10:00 DateCalcUtils.getMinute(date); 10
getMonth(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取月份 比如时间2014-05-12 12:10:00 DateCalcUtils.getMonth(date); 5
getMonthsBetween(Date, Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
计算两个日期之间相差的月份 比如Date start = 2012-2-12 Date end = 2012-3-1 DateCalcUtils.getMonthsBetween(start,end) 1
getPath() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
 
getProperty(String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
返回key对应的值
getProperty(String, String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
返回key对应的值,如果值不存在,则返回defaultValue
getProperty(String, Class<T>) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
 
getProperty(String, Class<T>, T) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
 
getProperty(String) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
返回key对应的值
getProperty(String, String) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
返回key对应的值,如果值不存在,则返回defaultValue
getProperty(String, Class<T>) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
返回key对应的值,并且转换为对应类型targetType的值
getProperty(String, Class<T>, T) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
返回key对应的值,并且转换为对应类型targetType的值
getPropertyDescriptor(Object, String) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
根据属性名称获取对应属性对象
getPropertyDescriptor(Class<?>, String) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
根据属性名称获取对应属性对象
getPropertyDescriptors(Object) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
获取Javabean的属性描述列表
getPropertyDescriptors(Class<?>) - 类 中的方法com.mzlion.core.beans.PropertyUtilBean
获取Javabean的属性描述列表
getRawType() - 类 中的方法com.mzlion.core.json.TypeRef
Returns the raw (non-generic) type for this type.
getRawType(Type) - 类 中的静态方法com.mzlion.core.utils.ClassUtils
返回类的原始类型
getResourceDescriptor(String) - 类 中的方法com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
 
getResourceDescriptor(String) - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptorLoader
 
getSecond(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取秒数 比如时间2014-05-12 22:10:00 DateCalcUtils.getSecond(date); 0
getTempDirectory() - 类 中的静态方法com.mzlion.core.io.FileUtils
平台临时目录
getTempDirectoryPath() - 类 中的静态方法com.mzlion.core.io.FileUtils
平台的临时目录
getTimeMillis(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
获取时间的毫秒数,该毫秒是时间转换为毫秒,而不是日期时间中的转动的毫秒。
getType() - 类 中的方法com.mzlion.core.json.TypeRef
Gets underlying Type instance.
getURI() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
返回URI资源
getURI() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
返回URI资源
getURL() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
返回URL资源
getURL() - 类 中的方法com.mzlion.core.io.resource.ClassPathResourceDescriptor
返回URL资源
getURL() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
返回URL资源
getURL() - 类 中的方法com.mzlion.core.io.resource.URLResourceDescriptor
返回URL资源
getUserDirectory() - 类 中的静态方法com.mzlion.core.io.FileUtils
用户主目录
getUserDirectoryPath() - 类 中的静态方法com.mzlion.core.io.FileUtils
返回用户的主目录
getYear(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
从日期中获取年份 比如时间2014-05-12 12:10:00 DateCalcUtils.getYear(date); 2014
getZipFS() - 类 中的静态方法com.mzlion.core.utils.ZipUtils
 

H

hasLength(String, String) - 类 中的静态方法com.mzlion.core.lang.Assert
assert the given string is not empty.
hasLength(CharSequence) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串是否为既不为null,字符串长度也不为0.当传入参数是一个空白符时也返回true
 StringUtils.hasLength(null);// --- false
 StringUtils.hasLength("");// --- false
 StringUtils.hasLength(" ");// --- true
 StringUtils.hasLength("Hi");// --- true
 
hasLength(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串是否为既不为null,字符串长度也不为0.当传入参数是一个空白符时也返回true
hasText(CharSequence) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串是否存在文本字符,即字符只是存在一个非空白字符。
hasText(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串是否存在文本字符,即字符只是存在一个非空白字符。
Hex - com.mzlion.core.binary中的类
将字节数组或字符数组转为16进制字符串

I

IMAGE_BMP - 类 中的静态变量com.mzlion.core.http.ContentType
 
IMAGE_GIF - 类 中的静态变量com.mzlion.core.http.ContentType
 
IMAGE_JPEG - 类 中的静态变量com.mzlion.core.http.ContentType
 
IMAGE_JPG - 类 中的静态变量com.mzlion.core.http.ContentType
 
IMAGE_PNG - 类 中的静态变量com.mzlion.core.http.ContentType
 
IOUtils - com.mzlion.core.io中的类
IO流工具类,本工具类提供的方法都不会刷新或关闭流,所以需要调用者自己手动关闭。
IOUtils() - 类 的构造器com.mzlion.core.io.IOUtils
 
IPUtils - com.mzlion.core.http中的类
操作和IP相关的工具类
IPUtils() - 类 的构造器com.mzlion.core.http.IPUtils
 
IPV4_REGEX - 类 中的静态变量com.mzlion.core.http.IPUtils
IPv4的正则
IPV4_REGEX - 类 中的静态变量com.mzlion.core.lang.ValidationUtils
IPv4的正则
IPV6_REGEX - 类 中的静态变量com.mzlion.core.http.IPUtils
IPv6的正则
IPV6_REGEX - 类 中的静态变量com.mzlion.core.lang.ValidationUtils
IPv6的正则
isArray(Object) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否是数组类型
 ObjectUtils.isArray(null); //--- false;
 ObjectUtils.isArray(new String[]{"aa","bb"}); //--- true
 
isAssignable(Class<?>, Class<?>) - 类 中的静态方法com.mzlion.core.utils.ClassUtils
判断sourceType是否是targetType父类或接口,其类的本身
isDigital(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
判断字符串是否为纯数字组成
isEmpty(char[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(boolean[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(byte[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(short[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(int[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(long[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(float[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(double[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或者为null
isEmpty(T[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否为空或为null
isEmpty(Collection<?>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
判断集合是否为空
CollectionUtils.isEmpty(list);
isEmpty(Map<?, ?>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
判断map是否为空
CollectionUtils.isEmpty(hashmap);
isEmpty(CharSequence) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串是否为null或空字符串,判断字符串是否为空请使用该方法.
isEmpty(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串是否为null或空字符串,判断字符串是否为空请使用该方法.
isEmptyElement(T[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断数组里的元素是否为空
isIPv4(String) - 类 中的静态方法com.mzlion.core.lang.ValidationUtils
判断是否是IPv4
isIPv6(String) - 类 中的静态方法com.mzlion.core.lang.ValidationUtils
 
isLeapYear(Date) - 类 中的静态方法com.mzlion.core.date.DateCalcUtils
判断是否是闰年,闰年规则:闰年查看 比如时间2014-05-12 22:10:00 DateCalcUtils.isLeapYear(date); false
isMobile(String) - 类 中的静态方法com.mzlion.core.lang.ValidationUtils
判断是否是手机号(中国)
isNotEmpty(T[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
判断是否不为空或不为null
isNotEmpty(Collection<?>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
判断集合是否为不为空
CollectionUtils.isNotEmpty(list);
isNotEmpty(Map<?, ?>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
判断map是否为不为空
CollectionUtils.isNotEmpty(hashmap);
isNumeric(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
判断是否是数值,如果是则返回true,否则返回false 支持类似'1','-1','0.01','.01'等格式的数值字符串,但是不支持进制数字字符串
isStrictMobile(String) - 类 中的静态方法com.mzlion.core.lang.ValidationUtils
判断是否是手机号(中国),使用较为严格的规则,但正则具有时效性,如果新增了号段则校验不通过.
isTrue(boolean, String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert a boolean expression,throwing IllegalArgumentException if the test result is false.

J

JAR_URL_PREFIX - 类 中的静态变量com.mzlion.core.io.ResourceUtils
 
JsonUtil - com.mzlion.core.json.fastjson中的类
JsonUtil类是基于fastjson进行一层封装,提供Java对象和json字符串之间的相互转换。
JsonUtil - com.mzlion.core.json.gson中的类
JsonUtil工具类是基于Google Gson简单封装,提供了Java对象和Json字符串的相互转换。

L

length() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
返回资源的内容长度,如果资源不存在则返回-1
length() - 接口 中的方法com.mzlion.core.io.resource.ResourceDescriptor
返回资源的内容长度,如果资源不存在则返回-1
LINUX_SEPARATOR - 类 中的静态变量com.mzlion.core.io.FilenameUtils
LINUX系统下目录分隔符

M

matches(Field) - 接口 中的方法com.mzlion.core.reflect.FieldFilter
判断field是否需要过滤
matches(Field) - 类 中的方法com.mzlion.core.reflect.StaticFieldFilter
判断field是否需要过滤
matchesIpv4(String) - 类 中的静态方法com.mzlion.core.http.IPUtils
校验字符串是否符合IPv4规则
matchesIpv6(String) - 类 中的静态方法com.mzlion.core.http.IPUtils
校验字符串是否符合IPv6规则
MD5 - com.mzlion.core.digest中的类
MD5摘要计算
MD5() - 类 的构造器com.mzlion.core.digest.MD5
 
md5Hex(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
计算文件的MD5值
md5Hex(InputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
流的md5,结果由16进制字符串返回
mergeStringArrays(String[], String[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
合并两个数组,其中数组元素重复的直计算一次.
MOBILE - 类 中的静态变量com.mzlion.core.lang.ValidationUtils
手机号简单校验正则
moveDirectory(File, File) - 类 中的静态方法com.mzlion.core.io.FileUtils
移动目录
moveDirectory(File, File, boolean) - 类 中的静态方法com.mzlion.core.io.FileUtils
移动目录
moveFile(File, File) - 类 中的静态方法com.mzlion.core.io.FileUtils
移动文件
MULTIPART_FORM_DATA - 类 中的静态变量com.mzlion.core.http.ContentType
 

N

notEmpty(Collection<?>, String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the collection has one element at least.
notEmpty(Map<?, ?>, String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the map has one entry at least.
notEmpty(T[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one element at least.
notEmpty(char[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one char element at least.
notEmpty(boolean[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one boolean element at least.
notEmpty(byte[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one byte element at least.
notEmpty(short[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one short element at least.
notEmpty(int[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one int element at least.
notEmpty(long[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one long element at least.
notEmpty(float[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one float element at least.
notEmpty(double[], String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert that the array has one doube element at least.
notNull(Object, String) - 类 中的静态方法com.mzlion.core.lang.Assert
Assert an object value is not null,throwing IllegalArgumentException if the test result is false.
nullSafeEquals(Object, Object) - 类 中的静态方法com.mzlion.core.lang.ObjectUtils
比较两个对象的内容(equals),如果两个对象相等则返回true,如果两个中有一个为null则返回false.
NumberUtils - com.mzlion.core.lang中的类
数值相关的工具类

O

ObjectUtils - com.mzlion.core.lang中的类
ObjectUtils提供了相关操作方法.
ONE_KB - 类 中的静态变量com.mzlion.core.io.FileUtils
1KB
ONE_MB - 类 中的静态变量com.mzlion.core.io.FileUtils
1MB
openFileInputStream(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
打开文件的输入流,提供了比new FileInputStream(file)更好更优雅的方式.
openFileOutputStream(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
打开件输出流

P

pack(String, File...) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip压缩,如果参数校验失败则直接返回false,默认采用UTF8编码
pack(String, Charset, File...) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip压缩,如果参数校验失败则直接返回false
pack(File, File...) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip压缩,如果参数校验失败则直接返回false,默认采用UTF8编码
pack(File, Charset, File...) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip压缩,如果参数校验失败则直接返回false
pack(Path, Path...) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
 
pack(Path, Charset, Path...) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
 
parseByFileExt(String) - 类 中的静态方法com.mzlion.core.http.ContentType
通过文件后缀名转为MIME
parseDate(String, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
解析日期字符串
parseDate(String) - 类 中的静态方法com.mzlion.core.date.DateUtils
解析日期字符串,默认解析规则yyyyMMddHHmmss
parseDateByLongStr(String) - 类 中的静态方法com.mzlion.core.date.DateUtils
解析日期字符串,日期格式应该是长整数的字符串表现形式。
path(String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver.Builder
添加properties文件的路径,支持classpath:模式和普通文件模式
pathList(String...) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver.Builder
添加properties文件的路径,支持classpath:模式和普通文件模式
PATTERN - 类 中的静态变量com.mzlion.core.date.DateUtils
日期格式化规则:yyyyMMdd
PATTERN_FULL - 类 中的静态变量com.mzlion.core.date.DateUtils
日期格式化规则:yyyyMMddHHmmss
PlaceholderPropertyResolver - com.mzlion.core.utils中的类
默认处理properties文件实现类,支持占位符的解析。
PlaceholderPropertyResolver.Builder - com.mzlion.core.utils中的类
对象构造类
println(Object) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
向控制台打印格式化过的json字符串
printWithApplicationJson(String, HttpServletResponse, Charset) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出JSON
printWithApplicationJson(String, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出JSON
printWithApplicationJson(Object, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出JSON
printWithCss(String, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出CSS片段
printWithCss(String, HttpServletResponse, Charset) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出CSS片段
printWithHtml(String, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出HTML片段
printWithHtml(String, HttpServletResponse, Charset) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出HTML片段
printWithJavascript(String, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出Javascript片段
printWithJavascript(String, HttpServletResponse, Charset) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出Javascript片段
printWithTextPlan(String, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出文本内容
printWithTextPlan(String, HttpServletResponse, Charset) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出文本内容
printWithTextPlan(Object, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出文本内容
printWithXml(String, HttpServletResponse) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出Xml片段
printWithXml(String, HttpServletResponse, Charset) - 类 中的静态方法com.mzlion.core.http.ResponseMessageUtils
对浏览器输出Xml片段
PropertyResolver - com.mzlion.core.utils中的接口
定义处理properties文件处理接口
PropertyResolverException - com.mzlion.core.exceptions中的异常错误
Thrown on reading property file
PropertyResolverException(Throwable) - 异常错误 的构造器com.mzlion.core.exceptions.PropertyResolverException
Create a new PropertyResolverException with the root cause.
PropertyUtilBean - com.mzlion.core.beans中的类
Javabean属性工具类

R

readLines(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
将文件的内容全部读取,采用系统默认编码
readLines(File, Charset) - 类 中的静态方法com.mzlion.core.io.FileUtils
将文件的内容全部读取
readLines(InputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
从输入流中读取,采用平台默认编码
readLines(InputStream, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
从输入流中读取
readLines(Reader) - 类 中的静态方法com.mzlion.core.io.IOUtils
从流中读取内容
ReflectionUtils - com.mzlion.core.reflect中的类
Class反射工具类
replace(String, String, String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将字符串中所有出现oldPattern替换为newPattern.
resolvePlaceholders(String) - 类 中的方法com.mzlion.core.utils.PlaceholderPropertyResolver
处理占位符${...}字符串,通过调用PlaceholderPropertyResolver.getProperty(String)替换为对应的值。
resolvePlaceholders(String) - 接口 中的方法com.mzlion.core.utils.PropertyResolver
处理占位符${...}字符串,通过调用PropertyResolver.getProperty(String)替换为对应的值。
ResourceDescriptor - com.mzlion.core.io.resource中的接口
文件或classpath的资源描述接口
ResourceDescriptorLoader - com.mzlion.core.io.resource中的接口
资源描述加载接口
ResourceUtils - com.mzlion.core.io中的类
文件资源工具类
ResourceUtils() - 类 的构造器com.mzlion.core.io.ResourceUtils
 
ResponseDownloadUtils - com.mzlion.core.http中的类
HttpServletResponse相关的工具类。
ResponseDownloadUtils() - 类 的构造器com.mzlion.core.http.ResponseDownloadUtils
 
ResponseMessageUtils - com.mzlion.core.http中的类
对外输出数据的工具类
ResponseMessageUtils() - 类 的构造器com.mzlion.core.http.ResponseMessageUtils
 

S

setClassLoader(ClassLoader) - 类 中的方法com.mzlion.core.io.resource.DefaultResourceDescriptorLoader
 
sha1(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA1摘要计算
sha1(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA1摘要计算
sha1Hex(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA1摘要计算,计算结果转为16进制字符串返回
sha1Hex(String, Charset) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA1摘要计算,计算结果转为16进制字符串返回
sha1Hex(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA1摘要计算,计算结果转为16进制字符串返回
sha1Hex(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA1摘要计算,计算结果转为16进制字符串返回
sha1Hex(File) - 类 中的静态方法com.mzlion.core.io.FileUtils
计算文件的SHA-1值
sha1Hex(FileInputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
流的SHA-1,结果由16进制字符串返回
sha256(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算
sha256(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算
sha256(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算
sha256Hex(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算,计算结果转为16进制字符串返回
sha256Hex(String, Charset) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算,计算结果转为16进制字符串返回
sha256Hex(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算,计算结果转为16进制字符串返回 x
sha256Hex(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA256摘要计算,计算结果转为16进制字符串返回
sha384(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算
sha384(String, Charset) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算
sha384(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算
sha384(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算
sha384Hex(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算,计算结果转为16进制字符串返回
sha384Hex(String, Charset) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算,计算结果转为16进制字符串返回
sha384Hex(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算,计算结果转为16进制字符串返回
sha384Hex(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA384摘要计算,计算结果转为16进制字符串返回
sha512(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算
sha512(String, Charset) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算
sha512(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算
sha512(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算
sha512Hex(String) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算,计算结果转为16进制字符串返回
sha512Hex(String, Charset) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算,结果16进制字符串输出
sha512Hex(byte[]) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算,结果16进制字符串输出
sha512Hex(InputStream) - 类 中的静态方法com.mzlion.core.digest.DigestUtils
SHA512摘要计算,结果16进制字符串输出
sortStringArray(String[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
数组排序
 StringUtils.sortStringArray(new String[]{"hello","boy","amazing"}); //--- [amazing,boy,hello]
 
split(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
字符串分割,默认采用了英文半角逗号分割
split(String, String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
字符串分割
splitAtFirst(String, String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
从识别的第一处分割字符串
startsWithIgnoreCase(String, String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
判断字符串中是否以给定的字符串开头,不考虑大小写问题
 StringUtils.startsWithIgnoreCase("abcd",null); //--- false
 StringUtils.startsWithIgnoreCase("abcd","ab"); //--- true
 StringUtils.startsWithIgnoreCase("abcd","bc"); //--- false
 StringUtils.startsWithIgnoreCase("abcd","AB"); //--- true
 StringUtils.startsWithIgnoreCase(null,"ab"); //--- false
 
STATIC_FIELD_FILTER - 接口 中的静态变量com.mzlion.core.reflect.FieldFilter
静态属性过滤器
StaticFieldFilter - com.mzlion.core.reflect中的类
静态的field过滤器实现
StaticFieldFilter() - 类 的构造器com.mzlion.core.reflect.StaticFieldFilter
 
STRICT_MOBILE - 类 中的静态变量com.mzlion.core.lang.ValidationUtils
手机号较为严格校验正则
StringUtils - com.mzlion.core.lang中的类
StringUtils工具类主要提供了针对字符串,字符串数组常用的工具类方法.
StringUtils() - 类 的构造器com.mzlion.core.lang.StringUtils
 
stripFilenameSuffix(String) - 类 中的静态方法com.mzlion.core.io.FilenameUtils
从文件路径中删除文件后缀名
 StringUtils.stripFilenameSuffix("/opt/app/config.properties"); //--- /opt/app/config
 
swapDateStr(String, String, String) - 类 中的静态方法com.mzlion.core.date.DateUtils
转换日期格式,比如将2013/01/01转为2013-01-01

T

TEXT_HTML - 类 中的静态变量com.mzlion.core.http.ContentType
 
TEXT_PLAIN - 类 中的静态变量com.mzlion.core.http.ContentType
 
TEXT_XML - 类 中的静态变量com.mzlion.core.http.ContentType
 
toByteArray(InputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
将输入流转为字节数组
toByteArray(InputStream, int) - 类 中的静态方法com.mzlion.core.io.IOUtils
从输入流中读取指定长度的字节数组
toByteArray(Reader) - 类 中的静态方法com.mzlion.core.io.IOUtils
Reader的内容转为字节数组,否转换异常则返回null
toByteArray(Reader, String) - 类 中的静态方法com.mzlion.core.io.IOUtils
Reader的内容转为字节数组,否转换异常则返回null
toByteArray(Reader, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
Reader的内容转为字节数组,否转换异常则返回null
toCamelCase(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将下划线大写方式命名的字符串转换为驼峰式。
toJson(T) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将Java对象转换JSON字符串.
toJson(T, String...) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将Java对象转换JSON字符串。
toJson(T, boolean, String...) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将Java对象转换JSON字符串。
toJson(Object, Map<Class<?>, List<String>>) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将Java对象转换为JSON字符串,会过滤掉指定类中的属性,不会污染到其它类中的同名属性。
toJson(Object, SerializerFeature...) - 类 中的静态方法com.mzlion.core.json.fastjson.JsonUtil
将Java对象转换为JSON字符串,该方法提供了开放的转换规则,比如出现了死循环而导致了结果不正确。
toJson(T) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将对象转为Json字符串,中文自动转为Unicode码
toJson(T, String...) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将对象转为Json字符串,支持忽略的属性列表.中文自动转为Unicode码
toJson(T, boolean, String...) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将对象转为Json字符串 将Javabean对象转为JSON字符串时希望非ASCII码(如中文)不Unicode转码,则可以调用该方法完成需求
toJson(T, boolean, boolean, String...) - 类 中的静态方法com.mzlion.core.json.gson.JsonUtil
将对象转为Json字符串 该方法除了更够控制是否转换Unicode之外,还可以支持值为null的属性名是否包含在JSON字符串中
toMapAsValueObject(Object) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
将Javabean对象转为Map,其中值的类型为Object
toMapAsValueString(Object) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
将Javabean对象转为Map,其中值的类型为String,空值的属性会被忽略。
toMapAsValueString(Object, boolean) - 类 中的静态方法com.mzlion.core.utils.BeanUtils
将Javabean对象转为Map,其中值的类型为String
toString() - 类 中的方法com.mzlion.core.http.ContentType
 
toString(InputStream) - 类 中的静态方法com.mzlion.core.io.IOUtils
 
toString(InputStream, String) - 类 中的静态方法com.mzlion.core.io.IOUtils
 
toString(InputStream, Charset) - 类 中的静态方法com.mzlion.core.io.IOUtils
 
toString(Reader) - 类 中的静态方法com.mzlion.core.io.IOUtils
 
toString() - 类 中的方法com.mzlion.core.io.resource.AbstractResourceDescriptor
 
toString(Object[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(Object[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(char[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(char[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(boolean[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(boolean[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(byte[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(byte[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(short[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(short[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(int[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(int[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(long[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(long[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(float[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(float[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(double[], String) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用英文半角逗号连接
toString(double[]) - 类 中的静态方法com.mzlion.core.lang.ArrayUtils
将数组转为字符串,使用delimiter将元素连接起来
toString(Collection<String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将集合数据转为字符串,每个元素之间采用,拼接。
toString(Collection<String>, String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将集合数据转为字符串,每个元素之间采用delimiter拼接。
toString(Map<String, String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将Map对象转为形如URL参数格式的字符串 Map<String,String> params = new HashMap<>(); params.put("username","admin"); params.put("password","123456"); String str = CollectionUtils.toString(params); //则得到的字符串结果为 "username=admin password=123456";
toString(Map<String, String>, String, String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将Map对象转成字符串,其中Key与Value的连接使用keyDelimiter拼接,键值对之间采用采用entryDelimiter拼接 Map<String,String> params = new HashMap<>(); params.put("username","admin"); params.put("password","123456"); String str = CollectionUtils.toString(params,"=","|"); //则得到的字符串结果为 username=admin|password=123456
toStringArray(Collection<String>) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
集合对象转为数组
 CollectionUtils.toStringArray(Arrays.asList("hello","boy","amazing")); //--- [boy,hello,amazing]
 
toUnderline(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将驼峰式命名的字符串转换为下划线字符串。
toUnderline(String, boolean) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将驼峰式命名的字符串转换为下划线字符串。
toURI(URL) - 类 中的静态方法com.mzlion.core.io.ResourceUtils
 
toURI(String) - 类 中的静态方法com.mzlion.core.io.ResourceUtils
创建URI对象,空格会被替换为"%20"
trim(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
去除字符串左右两侧的空白符 StringUtils.trim(null); //--- null StringUtils.trim(""); //--- "" StringUtils.trim(" "); //--- "" StringUtils.trim(" a b "); //--- a b
trimLeftWhiteSpace(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
去除字符串左侧的空白字符
 StringUtils.trimLeftWhiteSpace(null); //--- null
 StringUtils.trimLeftWhiteSpace("ab"); //--- null
 StringUtils.trimLeftWhiteSpace(("  ab c");//--- ab c
 
trimRightWhiteSpace(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
去除字符串右侧的空白字符
 StringUtils.trimRightWhiteSpace(null); //--- null
 StringUtils.trimRightWhiteSpace("ab"); //--- null
 StringUtils.trimRightWhiteSpace((" ab c   ");//---  ab c
 
TypeRef<T> - com.mzlion.core.json中的类
该类主要用于传递泛型的类型,避免在运行时期找不到泛型的实际类型。
TypeRef() - 类 的构造器com.mzlion.core.json.TypeRef
 

U

unCapitalize(String) - 类 中的静态方法com.mzlion.core.lang.StringUtils
将字符串的第一个字符(必须在Character.toLowerCase(char)中,否则就不会改变)转换为小写.
unicode2GBK(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
Unicode编码的字符串转为GBK编码的字符串
unicodeToUtf8(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
unicode编码的字符串转为UTF8编码的字符串
unpack(String, String) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false,默认采用UTF8编码
unpack(String, String, Charset) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false
unpack(String, File) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false,默认采用UTF8编码
unpack(String, File, Charset) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false
unpack(File, File) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false,默认采用UTF8编码
unpack(File, String) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false,默认采用UTF8编码
unpack(File, String, Charset) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false
unpack(File, File, Charset) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
zip解压,如果参数校验失败则直接返回false
unpack(Path, Path) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
 
unpack(Path, Path, Charset) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
 
unpackx(Path, String) - 类 中的静态方法com.mzlion.core.utils.ZipUtils
 
urlParam2Map(String) - 类 中的静态方法com.mzlion.core.lang.CollectionUtils
将url中的请求参数转为Map对象
URLResourceDescriptor - com.mzlion.core.io.resource中的类
URL资源加载
URLResourceDescriptor(URL) - 类 的构造器com.mzlion.core.io.resource.URLResourceDescriptor
 
URLResourceDescriptor(String) - 类 的构造器com.mzlion.core.io.resource.URLResourceDescriptor
 
utf82gbk(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
UTF8编码的字符串转为gbk编码的字符串
utf8ToUnicode(String) - 类 中的静态方法com.mzlion.core.lang.CharsetUtils
UTF8编码的字符串转为unicode编码的字符串

V

ValidationUtils - com.mzlion.core.lang中的类
常用的验证工具
ValidationUtils() - 类 的构造器com.mzlion.core.lang.ValidationUtils
 

W

WINDOWS_SEPARATOR - 类 中的静态变量com.mzlion.core.io.FilenameUtils
Windows下的目录分隔符

Y

yuan2Fen(long) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额转为分
yuan2Fen(double) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额转为分,默认保留2位小数,超过则四舍五入.
yuan2Fen(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额转为分,默认保留2位小数,超过则四舍五入.
yuan2Fen(double, boolean) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额转为分,保留小数位位数
yuan2Fen(String, boolean) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
人民币金额转为分,保留小数位位数.
yuan2FenString(String) - 类 中的静态方法com.mzlion.core.lang.NumberUtils
将人民币金额(字符串)转成分(结果为仍为字符串)

Z

ZipUtils - com.mzlion.core.utils中的类
ZIP的压缩和解压工具
ZipUtils() - 类 的构造器com.mzlion.core.utils.ZipUtils
 
A B C D E F G H I J L M N O P R S T U V W Y Z 

Copyright © 2017. All rights reserved.