interface WritableResource : Resource
Extended interface for a resource that supports writing to it. Provides an OutputStream accessor.
Author
Juergen Hoeller
Since
3.1
See Also
java.io.OutputStream
abstract fun getOutputStream(): OutputStream
Return an OutputStream for the underlying resource, allowing to (over-)write its content. |
|
open fun isWritable(): Boolean
Indicate whether the contents of this resource can be written via Will be |
|
open fun writableChannel(): WritableByteChannel
Return a WritableByteChannel. It is expected that each call creates a fresh channel. The default implementation returns |
open class FileUrlResource : UrlResource, WritableResource
Subclass of UrlResource which assumes file resolution, to the degree of implementing the WritableResource interface for it. This is the class resolved by DefaultResourceLoader for a "file:..." URL location, allowing a downcast to WritableResource for it. Alternatively, for direct construction from a java.io.File handle, consider using FileSystemResource. For an NIO java.nio.file.Path, consider using PathResource instead. |
|
open class PathResource : AbstractResource, WritableResource
Resource implementation for |