| 程序包 | 说明 |
|---|---|
| com.firefly.utils.io |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ContextResource |
interface |
WritableResource
Extended interface for a resource that supports writing to it.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractFileResolvingResource
Abstract base class for resources which resolve URLs into File references,
such as
UrlResource or ClassPathResource. |
class |
AbstractResource
Convenience base class for
Resource implementations,
pre-implementing typical behavior. |
class |
ByteArrayResource
Resource implementation for a given byte array. |
class |
ClassPathResource
Resource implementation for class path resources. |
protected static class |
DefaultResourceLoader.ClassPathContextResource
ClassPathResource that explicitly expresses a context-relative path
through implementing the ContextResource interface.
|
class |
FileSystemResource
Resource implementation for java.io.File handles. |
class |
InputStreamResource
Resource implementation for a given InputStream. |
class |
PathResource
Resource implementation for java.nio.file.Path handles. |
class |
UrlResource
Resource implementation for java.net.URL locators. |
| 限定符和类型 | 方法和说明 |
|---|---|
Resource |
UrlResource.createRelative(String relativePath)
This implementation creates a
UrlResource, applying the given path
relative to the path of the underlying URL of this resource descriptor. |
Resource |
Resource.createRelative(String relativePath)
Create a resource relative to this resource.
|
Resource |
PathResource.createRelative(String relativePath)
This implementation creates a FileResource, applying the given path
relative to the path of the underlying file of this resource descriptor.
|
Resource |
FileSystemResource.createRelative(String relativePath)
This implementation creates a FileSystemResource, applying the given path
relative to the path of the underlying file of this resource descriptor.
|
Resource |
DefaultResourceLoader.ClassPathContextResource.createRelative(String relativePath) |
Resource |
ClassPathResource.createRelative(String relativePath)
This implementation creates a ClassPathResource, applying the given path
relative to the path of the underlying resource of this descriptor.
|
Resource |
AbstractResource.createRelative(String relativePath)
This implementation throws a FileNotFoundException, assuming
that relative resources cannot be created for this resource.
|
Resource |
EncodedResource.getResource()
Return the
Resource held by this EncodedResource. |
Resource |
ResourceLoader.getResource(String location)
Return a Resource handle for the specified resource.
|
Resource |
DefaultResourceLoader.getResource(String location) |
protected Resource |
DefaultResourceLoader.getResourceByPath(String path)
Return a Resource handle for the resource at the given path.
|
protected Resource |
ClassRelativeResourceLoader.getResourceByPath(String path) |
Resource |
ProtocolResolver.resolve(String location,
ResourceLoader resourceLoader)
Resolve the given location against the given resource loader
if this implementation's protocol matches.
|
| 构造器和说明 |
|---|
EncodedResource(Resource resource)
Create a new
EncodedResource for the given Resource, not
specifying an explicit encoding or Charset. |
EncodedResource(Resource resource,
Charset charset)
Create a new
EncodedResource for the given Resource,
using the specified Charset. |
EncodedResource(Resource resource,
String encoding)
Create a new
EncodedResource for the given Resource,
using the specified encoding. |
Copyright © 2016. All rights reserved.