StorageFileclass URLFile extends InputStreamFile<URLStorageFactory>
nameStart, path, storageFactoryEXCLUSIVE_FILE_LOCK, EXCLUSIVE_FILE_LOCK_NOT_AVAILABLE, NO_FILE_LOCK_SUPPORT| Modifier | Constructor | Description |
|---|---|---|
(package private) |
URLFile(URLFile dir,
java.lang.String name) |
|
(package private) |
URLFile(URLStorageFactory storageFactory,
java.lang.String path) |
|
private |
URLFile(URLStorageFactory storageFactory,
java.lang.String child,
int pathLen) |
|
(package private) |
URLFile(URLStorageFactory storageFactory,
java.lang.String parent,
java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
exists() |
Tests whether the named file exists.
|
java.io.InputStream |
getInputStream() |
Creates an input stream from a file name.
|
(package private) StorageFile |
getParentDir(int pathLen) |
Get the parent of this file.
|
canWrite, createNewFile, delete, deleteAll, equals, getCanonicalPath, getExclusiveFileLock, getName, getOutputStream, getOutputStream, getParentDir, getPath, getRandomAccessFile, hashCode, isDirectory, limitAccessToOwner, list, mkdir, mkdirs, releaseExclusiveFileLock, renameTo, setReadOnly, toStringURLFile(URLStorageFactory storageFactory, java.lang.String path)
URLFile(URLStorageFactory storageFactory, java.lang.String parent, java.lang.String name)
URLFile(URLFile dir, java.lang.String name)
private URLFile(URLStorageFactory storageFactory, java.lang.String child, int pathLen)
public boolean exists()
exists in interface StorageFileexists in class InputStreamFile<URLStorageFactory>StorageFile getParentDir(int pathLen)
getParentDir in class InputStreamFile<URLStorageFactory>pathLen - the length of the parent's path name.public java.io.InputStream getInputStream()
throws java.io.FileNotFoundException
getInputStream in interface StorageFilegetInputStream in class InputStreamFile<URLStorageFactory>java.io.FileNotFoundException - if the file is not found.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.