class URLFile extends InputStreamFile
| Modifier and Type | Field and Description |
|---|---|
private URLStorageFactory |
storageFactory |
nameStart, pathEXCLUSIVE_FILE_LOCK, EXCLUSIVE_FILE_LOCK_NOT_AVAILABLE, NO_FILE_LOCK_SUPPORT| Modifier | Constructor and 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 and 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, getURL, hashCode, isDirectory, length, limitAccessToOwner, list, mkdir, mkdirs, releaseExclusiveFileLock, renameTo, setReadOnly, toStringprivate final URLStorageFactory storageFactory
URLFile(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 InputStreamFileStorageFile getParentDir(int pathLen)
getParentDir in class InputStreamFilepathLen - the length of the parent's path name.public java.io.InputStream getInputStream()
throws java.io.FileNotFoundException
getInputStream in interface StorageFilegetInputStream in class InputStreamFilejava.io.FileNotFoundException - if the file is not found.Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.