forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
612 B
26 lines
612 B
package com.fanruan.api.util; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import javax.swing.*; |
|
import java.io.InputStream; |
|
|
|
public class BaseKit { |
|
/** |
|
* 从file中读数据,以流的形式读出数据 |
|
* @param file |
|
* @return 返回file文件,文件数据流 |
|
*/ |
|
public static InputStream readResource(String file) { |
|
return BaseUtils.readResource(file); |
|
} |
|
|
|
/** |
|
* 从file中读取数据,根据数据返回Icon图片 |
|
* @param file |
|
* @return 返回Icon图片 |
|
*/ |
|
public static Icon readIcon(String file) { |
|
return BaseUtils.readIcon(file); |
|
} |
|
}
|
|
|