| Package | Description |
|---|---|
| org.aoju.bus.core.image | |
| org.aoju.bus.core.io.resource | |
| org.aoju.bus.core.utils |
| Modifier and Type | Method and Description |
|---|---|
static Image |
Image.from(Resource resource)
从资源对象中读取图片并开始处理
|
| Modifier and Type | Class and Description |
|---|---|
class |
BytesResource
基于byte[]的资源获取器
注意:此对象中getUrl方法始终返回null
|
class |
ClassPathResource
ClassPath单一资源访问类
传入路径path必须为相对路径,如果传入绝对路径,Linux路径会去掉开头的“/”,而Windows路径会直接报错。
传入的path所指向的资源必须存在,否则报错
|
class |
FileResource
文件资源访问对象
|
class |
InputStreamResource
基于
InputStream的资源获取器
注意:此对象中getUrl方法始终返回null |
class |
MultiFileResource
多文件组合资源
此资源为一个利用游标自循环资源,只有调用
MultiResource.next() 方法才会获取下一个资源,使用完毕后调用MultiResource.reset()方法重置游标 |
class |
MultiResource
多资源组合资源
此资源为一个利用游标自循环资源,只有调用
MultiResource.next() 方法才会获取下一个资源,使用完毕后调用MultiResource.reset()方法重置游标 |
class |
StringResource
字符串资源,字符串做为资源
|
class |
UrlResource
URL资源访问类
|
class |
WebAppResource
Web root资源访问对象
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
MultiResource.next() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Resource> |
MultiResource.iterator() |
| Modifier and Type | Method and Description |
|---|---|
MultiResource |
MultiResource.add(Resource resource)
增加资源
|
MultiFileResource |
MultiFileResource.add(Resource resource) |
| Constructor and Description |
|---|
MultiResource(Resource... resources)
构造
|
| Constructor and Description |
|---|
MultiResource(Collection<Resource> resources)
构造
|
| Modifier and Type | Method and Description |
|---|---|
static Resource |
ResourceUtils.getResourceObj(String path)
|
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
ImageUtils.read(Resource resource)
从
Resource中读取图片 |
Copyright © 2019. All rights reserved.