public class FaceUtilitsX extends java.lang.Object
Constructor and Description |
---|
FaceUtilitsX() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getAxis2Conf()
通过环境变量CATALINA_HOME,获取axis2/WEB-INF/conf的位置
如果没有定义CATALINA_HOME或没有找到/webapps/axis2/WEB-INF/conf,则抛出 FileNotFoundException |
static java.lang.String |
getFormatName(byte[] img)
通过
ImageIO.getImageReaders(Object) 获取图像类型,返回文件格式名,如"jpeg","gif"用于保存图像文件时的后缀名 |
static java.lang.String |
getRuntimeProperty(java.lang.String key) |
static boolean |
isBuilding()
当类被加载的时候,根据环境变量‘is_building’判断当前是运行状态还是代码编译构建状态
如果没有定义环境变量,则默认为false |
static boolean |
notLoadCodeTable()
当类被加载的时候,根据环境变量‘notLoadCodeTable’判断是否要加载code表
如果没有定义环境变量,则默认为false |
public FaceUtilitsX()
public static java.lang.String getFormatName(byte[] img) throws java.lang.IllegalArgumentException, java.io.IOException
ImageIO.getImageReaders(Object)
获取图像类型,返回文件格式名,如"jpeg","gif"img
- 图像数据java.lang.IllegalArgumentException
- img
为null或空字符串""java.io.IOException
ImageIO.getImageReaders(Object)
,
ImageReader.getFormatName()
public static final boolean isBuilding()
public static java.io.File getAxis2Conf() throws java.io.FileNotFoundException
FileNotFoundException
java.io.FileNotFoundException
public static final boolean notLoadCodeTable()
public static final java.lang.String getRuntimeProperty(java.lang.String key)
Copyright © 2019. All rights reserved.