@API(type=EXTENDABLE,
src=PUBLIC)
public interface URLHandlerReadOnlyCheckerExtension
Modifier and Type | Method and Description |
---|---|
boolean |
canCheckReadOnly(java.lang.String protocol)
Returns true if the implementor should be asked about the read-only status for URL's of a certain protocol.
|
boolean |
isReadOnly(java.net.URL url)
Decide if a given URL is read-only or writable to.
|
boolean isReadOnly(java.net.URL url)
url
- The URL for which the implementor will decide if it is read-only or not.boolean canCheckReadOnly(java.lang.String protocol)
protocol
- The URL protocol (like "http" or "file")true
if the implementor should be asked about the read-only status for URL's of a certain protocol.
For example if you want to decide if "http" URLs are read-only or not you should return true
if the protocol is "http"
Then, the other callback will be called and you will be able to decide the read-only status for the URL.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.