public interface WritableResource extends Resource
OutputStream accessor.OutputStream| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getOutputStream()
Return an
OutputStream for the underlying resource,
allowing to (over-)write its content. |
boolean |
isWritable()
Return whether the contents of this resource can be modified,
e.g.
|
contentLength, createRelative, exists, getDescription, getFile, getFilename, getURI, getURL, isOpen, isReadable, lastModifiedgetInputStreamboolean isWritable()
getOutputStream() or Resource.getFile().
Will be true for typical resource descriptors;
note that actual content writing may still fail when attempted.
However, a value of false is a definitive indication
that the resource content cannot be modified.
getOutputStream(),
Resource.isReadable()java.io.OutputStream getOutputStream()
throws java.io.IOException
OutputStream for the underlying resource,
allowing to (over-)write its content.java.io.IOException - if the stream could not be openedInputStreamSource.getInputStream()