Indicates whether the current context is allowed to read from this file. @return true if this file can be read, false otherwise. @throws SecurityException if a SecurityManager is installed and it denies the read request.
()
| 316 | * read request. |
| 317 | */ |
| 318 | public boolean canRead() { |
| 319 | if (path.length() == 0) { |
| 320 | return false; |
| 321 | } |
| 322 | // SecurityManager security = System.getSecurityManager(); |
| 323 | // if (security != null) { |
| 324 | // security.checkRead(path); |
| 325 | // } |
| 326 | byte[] pp = properPath(true); |
| 327 | return existsImpl(pp) && !isWriteOnlyImpl(pp); |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Indicates whether the current context is allowed to write to this file. |
nothing calls this directly
no test coverage detected