接口 WritableResource
- 所有超级接口:
InputStreamSource,OutputStreamSource,Resource
- 所有已知子接口:
JarResource
- 所有已知实现类:
FileSystemResource,FileUrlResource,JarEntryResource,PathResource,WritableResourceDecorator
Extended interface for a resource that supports writing to it.
- 从以下版本开始:
- 2.1.6 2019-05-14 20:56
- 作者:
- TODAY
-
字段概要
从接口继承的字段 cn.taketoday.core.io.Resource
EMPTY_ARRAY -
方法概要
修饰符和类型方法说明default booleanIndicate whether the contents of this resource can be written viaOutputStreamSource.getOutputStream().从接口继承的方法 cn.taketoday.core.io.InputStreamSource
getInputStream, getReader, getReader, readableChannel从接口继承的方法 cn.taketoday.core.io.OutputStreamSource
getOutputStream, getWriter, writableChannel从接口继承的方法 cn.taketoday.core.io.Resource
contentLength, createRelative, exists, getFile, getName, getURI, getURL, isDirectory, isFile, isOpen, isReadable, lastModified, list, list, toString
-
方法详细资料
-
isWritable
default boolean isWritable()Indicate whether the contents of this resource can be written viaOutputStreamSource.getOutputStream().Will be
truefor typical resource descriptors; note that actual content writing may still fail when attempted. However, a value offalseis a definitive indication that the resource content cannot be modified.
-