public class JtUtilEx extends JtUtil
| 构造器和说明 |
|---|
JtUtilEx() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
extendDel(String name) |
List<Map<String,Object>> |
extendList() |
boolean |
fileFlush(String path,
boolean is_del) |
boolean |
fileFlush(String path,
boolean is_del,
String label,
String note) |
String |
fileGet(String path) |
boolean |
fileNew(int fid,
org.noear.solon.core.handle.Context ctx)
新建文件
|
boolean |
fileSet(int fid,
String fcontent)
文件设置内容
|
String |
img2String(String data) |
void |
imgDelCache(String path)
删除图片缓存
|
String |
imgGet(String path)
获取图片内容
|
byte[] |
imgGetBytes(String path) |
String |
imgOutName(org.noear.solon.core.handle.Context ctx,
String filename) |
String |
imgSet(String content,
String contentType,
String extension)
保存图片(内容,类型,后缀名可自定义)
|
String |
imgSet(String content,
String contentType,
String extension,
String name) |
String |
imgSet(String content,
String contentType,
String extension,
String name,
String label) |
String |
imgSet(org.noear.solon.core.handle.UploadedFile file)
保存图片
|
String |
imgSet(org.noear.solon.core.handle.UploadedFile file,
String extension)
保存图片(后缀名可自定义)
|
String |
imgSet(org.noear.solon.core.handle.UploadedFile file,
String tag,
String dir,
int name_mod) |
String |
imgUpd(String path,
String content)
修改图片
|
boolean |
loadJar(String path,
String data64,
String data_md5,
String plugin) |
List<Map<String,Object>> |
menuGet(String label) |
List<Map<String,Object>> |
menuGet(String label,
int pid) |
boolean |
restart() |
protected Map<String,Object> |
ridGet() |
void |
rootSet(String path) |
Object |
thumbnailOf(InputStream stream) |
aesDecrypt, aesDecrypt, aesEncrypt, aesEncrypt, base64Decode, base64Encode, cfg, cfgGet, cfgGet, cfgOf, cfgSet, codeByRandom, codeToImage, db, db, empList, empMap, empSet, executorList, guid, gzip, heihei, hmac, hmac, htmlEncode, http, interfaceList, ip, isNumber, jsondDecode, jsondEncode, ldap, liveString, liveTime, localAddr, log, log, md5, md5, newList, newList, newMap, newOutputStream, newSet, newUri, newXfile, oNode, paging, paging, ping, ridAdd, runtimeStatus, sha1, sha1, sha256, sha256, sharedAdd, sharedHas, sleep, statusSet, streamOutToIn, streamToString, stringOf, stringToStream, toX16, toX64, tran, tranNew, tranNot, unGzip, urlDecode, urlEncodepublic static final JtUtilEx g2
@Note(value="\u8bbe\u7f6e\u6839\u8def\u5f84\u94fe\u63a5") public void rootSet(String path)
@Note(value="\u83b7\u53d6\u83dc\u5355") public List<Map<String,Object>> menuGet(String label, int pid) throws Exception
Exception@Note(value="\u83b7\u53d6\u83dc\u5355") public List<Map<String,Object>> menuGet(String label) throws Exception
Exception@Note(value="\u5220\u9664\u56fe\u7247\u7f13\u5b58") public void imgDelCache(String path)
@Note(value="\u4fdd\u5b58\u56fe\u7247") public String imgSet(org.noear.solon.core.handle.UploadedFile file) throws Exception
Exception@Note(value="\u4fdd\u5b58\u56fe\u7247") public String imgSet(org.noear.solon.core.handle.UploadedFile file, String tag, String dir, int name_mod) throws Exception
Exception@Note(value="\u4fdd\u5b58\u56fe\u7247\uff08\u540e\u7f00\u540d\u53ef\u81ea\u5b9a\u4e49\uff09") public String imgSet(org.noear.solon.core.handle.UploadedFile file, String extension) throws Exception
Exception@Note(value="\u4fdd\u5b58\u56fe\u7247\uff08\u5185\u5bb9\uff0c\u7c7b\u578b\uff0c\u540e\u7f00\u540d\u53ef\u81ea\u5b9a\u4e49\uff09") public String imgSet(String content, String contentType, String extension) throws Exception
Exception@Note(value="\u4fdd\u5b58\u56fe\u7247\uff08\u5185\u5bb9\uff0c\u7c7b\u578b\uff0c\u540d\u5b57\uff0c\u540e\u7f00\u540d\u53ef\u81ea\u5b9a\u4e49\uff09") public String imgSet(String content, String contentType, String extension, String name) throws Exception
Exception@Note(value="\u4fdd\u5b58\u56fe\u7247\uff08\u5185\u5bb9\uff0c\u7c7b\u578b\uff0c\u540d\u5b57\uff0c\u540e\u7f00\u540d\uff0c\u6807\u7b7e\u53ef\u81ea\u5b9a\u4e49\uff09") public String imgSet(String content, String contentType, String extension, String name, String label) throws Exception
Exception@Note(value="\u8bbe\u5b9a\u56fe\u7247\u8f93\u51fa\u540d\u79f0") public String imgOutName(org.noear.solon.core.handle.Context ctx, String filename) throws Exception
Exception@Note(value="\u4fee\u6539\u56fe\u7247") public String imgUpd(String path, String content) throws Exception
Exception@Note(value="\u83b7\u53d6\u56fe\u7247\u5185\u5bb9(string)") public String imgGet(String path) throws Exception
Exception@Note(value="\u83b7\u53d6\u56fe\u7247\u5185\u5bb9(byte[])") public byte[] imgGetBytes(String path) throws Exception
Exception@Note(value="\u56fe\u7247\u5185\u5bb9\u8f6c\u4e3a\u5b57\u7b26\u4e32") public String img2String(String data)
@Note(value="\u83b7\u53d6\u6587\u4ef6\u5185\u5bb9") public String fileGet(String path) throws Exception
Exception@Note(value="\u6587\u4ef6\u65b0\u5efa")
public boolean fileNew(int fid,
org.noear.solon.core.handle.Context ctx)
throws Exception
Exception@Note(value="\u6587\u4ef6\u8bbe\u7f6e\u5185\u5bb9")
public boolean fileSet(int fid,
String fcontent)
throws Exception
Exception@Note(value="\u6587\u4ef6\u5237\u65b0\u7f13\u5b58") public boolean fileFlush(String path, boolean is_del)
@Note(value="\u6587\u4ef6\u5237\u65b0\u7f13\u5b58") public boolean fileFlush(String path, boolean is_del, String label, String note)
@Note(value="\u91cd\u542f\u7f13\u5b58") public boolean restart()
@Note(value="\u83b7\u53d6\u6269\u5c55\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6") public List<Map<String,Object>> extendList()
@Note(value="\u5220\u9664\u6269\u5c55\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6") public boolean extendDel(String name)
@Note(value="\u521b\u5efa\u7f29\u7565\u56fe\u5de5\u5177") public Object thumbnailOf(InputStream stream)
@Note(value="\u52a0\u8f7d\u63d2\u4ef6\u91cc\u7684jar\u5305") public boolean loadJar(String path, String data64, String data_md5, String plugin) throws Exception
ExceptionCopyright © 2023. All rights reserved.