类 PathResource

java.lang.Object
cn.taketoday.core.io.AbstractResource
cn.taketoday.core.io.PathResource
所有已实现的接口:
InputStreamSource, OutputStreamSource, Resource, WritableResource

public class PathResource extends AbstractResource implements WritableResource
Resource implementation for Path handles, performing all operations and transformations via the Path API. Supports resolution as a File and also as a URL. Implements the extended WritableResource interface.

Path support is also available in FileSystemResource, applying Spring's standard String-based path transformations but performing all operations via the Files API. This PathResource is effectively a pure java.nio.path.Path based alternative with different createRelative behavior.

从以下版本开始:
4.0 2022/3/25 11:45
作者:
Philippe Marschall, Juergen Hoeller, Harry Yang
另请参阅: